# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
147158 | jh05013 | MathWorlds (YDX13_mathworlds) | Cpython 3 | 29 ms | 3432 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
a, b, c = map(int,input().split())
add = (a+b == c)
sub = (a-b == c)
mul = (a*b == c)
div = (b != 0 and c*b == a)
if add+sub+mul+div != 1: print("Invalid")
elif add: print("+")
elif sub: print("-")
elif mul: print("*")
else: print("/")
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |