Submission

Status:

xxxxxxxxxx

Subtask/Task Score:

0/100

Score: 0

User: phatto

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

Language: python

Time: 0.000 second

Submitted On: 2026-09-16 00:20:48

x,y,z= int(input()), int(input()), int(input())
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)