Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: phatto
Problemset: เส้นทางคณิตศาสตร์
Language: python
Time: 0.011 second
Submitted On: 2026-09-16 00:26:36
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)
else:
print("")