# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
51607 | baneling100 | 동전 게임 (KOI15_coin) | C++17 | 63 ms | 5328 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 <cstdio>
int K, C, M, N;
int main() {
int i;
scanf("%d %d", &K, &C);
for(i = 1; i <= C; i++) {
scanf("%d %d", &M, &N);
if(M > N) printf("%d\n", N + K >= 2 * (M - 1));
else if(M < N) printf("%d\n", M + K >= 2 * N - 1);
else printf("1\n");
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |