# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
19137 | 2016-02-18T17:21:15 Z | eaststar | MathWorlds (YDX13_mathworlds) | C++14 | 0 ms | 1084 KB |
#include <stdio.h> int main(){ long long x,y,z,t=0; char c; scanf("%lld%lld%lld",&x,&y,&z); if(x+y==z)c='+',++t; if(x-y==z)c='-',++t; if(x*y==z)c='*',++t; if(x%y==0&&x/y==z)c='/',++t; if(t==1)putchar(c); else puts("Invalid"); return 0; }
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 1084 KB | Output is correct |
2 | Correct | 0 ms | 1084 KB | Output is correct |
3 | Runtime error | 0 ms | 1080 KB | SIGFPE Floating point exception |
4 | Halted | 0 ms | 0 KB | - |