Submission

Status:

PPP-PPPPPP

Subtask/Task Score:

90/100

Score: 90

User: phatto

Problemset: เส้นทางคณิตศาสตร์

Language: python

Time: 0.013 second

Submitted On: 2026-09-16 00:25:30

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("")