# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
949045 | rainboy | MathWorlds (YDX13_mathworlds) | C11 | 1 ms | 600 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() {
int x, y, z, b;
scanf("%d%d%d", &x, &y, &z);
b = 0;
if (x + y == z)
b |= 1;
if (x - y == z)
b |= 2;
if ((long long) x * y == z)
b |= 4;
if (y != 0 && x % y == 0 && x / y == z)
b |= 8;
if (b == 1)
printf("+\n");
else if (b == 2)
printf("-\n");
else if (b == 4)
printf("*\n");
else if (b == 8)
printf("/\n");
else
printf("Invalid\n");
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |