# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
19137 | eaststar | MathWorlds (YDX13_mathworlds) | C++14 | 0 ms | 1084 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.
#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 |
---|---|---|---|---|
Fetching results... |