Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: skibidisigma
Problemset: เส้นทางคณิตศาสตร์
Language: python
Time: 0.011 second
Submitted On: 2026-05-28 14:26:42
# Source: https://usaco.guide/general/io
x,y,z = map(int, input().split())
if z ==1:
print(x+y)
elif z ==2:
print(x-y)
elif z ==3:
print(x*y)
elif z ==4:
if y ==0:
print("cannot divide by zero")
else:
print(x//y)
elif z == 5:
if y ==0:
print("cannot divide by zero")
else:
print(x%y)