Submission
Status:
PPP-PPPPPP
Subtask/Task Score:
90/100
Score: 90
User: phatto
Problemset: เส้นทางคณิตศาสตร์
Language: python
Time: 0.012 second
Submitted On: 2026-09-16 00:23:08
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)