# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
19138 | 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>
char *a=" +-*/";
int main(){
long long x,y,z,s,t=0;
scanf("%lld%lld%lld",&x,&y,&z);
if(x+y==z)s=1,++t;
if(x-y==z)s=2,++t;
if(x*y==z)s=3,++t;
if(y&&x%y==0&&x/y==z)s=4,++t;
if(t!=1)puts("Invalid");
else putchar(a[s]);
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |