# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
16965 | taehoon1018 | MathWorlds (YDX13_mathworlds) | C++98 | 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(void)
{
int x, y, z, count = 0;
char ch;
scanf("%d%d%d", &x, &y, &z);
if (x + y == z)
{
count++;
ch = '+';
}
if (x - y == z)
{
ch = '-';
count++;
}
if (x*y == z)
{
ch = '*';
count++;
}
if (y != 0 && x / y == z && x % y ==0)
{
ch = '/';
count++;
}
if (count == 1)
printf("%c", ch);
else
printf("Invalid");
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |