# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
320983 | 2020-11-10T12:28:30 Z | tjdgus4384 | 동전 게임 (KOI15_coin) | C++14 | 26 ms | 1260 KB |
#include<bits/stdc++.h> using namespace std; int K, C, M, N; int main(){ scanf("%d %d", &K, &C); for(int i = 0;i < C;i++){ scanf("%d %d", &M, &N); if(M < N){ if(N*2 > (K+1+M)) printf("0\n"); else printf("1\n"); } if(M == N) printf("1\n"); if(M > N){ if(M*2 > (K+N+2)) printf("0\n"); else printf("1\n"); } } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 364 KB | Output is correct |
2 | Correct | 0 ms | 364 KB | Output is correct |
3 | Correct | 1 ms | 364 KB | Output is correct |
4 | Correct | 1 ms | 364 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 364 KB | Output is correct |
2 | Correct | 1 ms | 364 KB | Output is correct |
3 | Correct | 1 ms | 364 KB | Output is correct |
4 | Correct | 1 ms | 364 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 364 KB | Output is correct |
2 | Correct | 1 ms | 364 KB | Output is correct |
3 | Correct | 3 ms | 364 KB | Output is correct |
4 | Correct | 23 ms | 1016 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 364 KB | Output is correct |
2 | Correct | 0 ms | 364 KB | Output is correct |
3 | Correct | 1 ms | 364 KB | Output is correct |
4 | Correct | 1 ms | 364 KB | Output is correct |
5 | Correct | 1 ms | 364 KB | Output is correct |
6 | Correct | 1 ms | 364 KB | Output is correct |
7 | Correct | 1 ms | 364 KB | Output is correct |
8 | Correct | 1 ms | 364 KB | Output is correct |
9 | Correct | 1 ms | 364 KB | Output is correct |
10 | Correct | 1 ms | 364 KB | Output is correct |
11 | Correct | 3 ms | 364 KB | Output is correct |
12 | Correct | 23 ms | 1016 KB | Output is correct |
13 | Correct | 2 ms | 364 KB | Output is correct |
14 | Correct | 1 ms | 364 KB | Output is correct |
15 | Correct | 15 ms | 1004 KB | Output is correct |
16 | Correct | 18 ms | 1004 KB | Output is correct |
17 | Correct | 25 ms | 1260 KB | Output is correct |
18 | Correct | 26 ms | 1260 KB | Output is correct |
19 | Correct | 24 ms | 1252 KB | Output is correct |
20 | Correct | 26 ms | 1260 KB | Output is correct |