Submission #147158

#TimeUsernameProblemLanguageResultExecution timeMemory
147158jh05013MathWorlds (YDX13_mathworlds)Cpython 3
1 / 1
29 ms3432 KiB
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 timeMemoryGrader output
Fetching results...