| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 949045 | rainboy | MathWorlds (YDX13_mathworlds) | C11 | 1 ms | 600 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
