python-algorithm
백준 23343 JavaScript
무적김두칠
2023. 1. 3. 17:05
https://www.acmicpc.net/problem/23343
23343번: JavaScript
Print the result of the minus operation (x - y) on one Line. If the result is an integer, please print it without the decimal point. If the result is not a number, please print NaN.
www.acmicpc.net
1
2
3
4
5
6
7
8
9
10
|
def sol(x, y):
if x.isdigit() and y.isdigit():
return int(x)-int(y)
else:
return 'NaN'
if __name__ == '__main__':
x, y = map(str, input().split())
print(sol(x, y))
|
cs |
반응형