# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
113261 | 2019-05-24T13:20:17 Z | starwh03 | 동전 게임 (KOI15_coin) | C++14 | 30 ms | 512 KB |
#include<stdio.h> int main() { int i,n,m,a,b,t=0; scanf("%d %d",&n,&m); for(i=1;i<=m;i++) { t=0; scanf("%d %d",&a,&b); if(a>b) { t=a; a=b; b=t; t=1; } if(b-a-t<=n-b+1) printf("1\n"); else printf("0\n"); } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 384 KB | Output is correct |
2 | Correct | 2 ms | 256 KB | Output is correct |
3 | Correct | 3 ms | 384 KB | Output is correct |
4 | Correct | 2 ms | 384 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 256 KB | Output is correct |
2 | Correct | 2 ms | 384 KB | Output is correct |
3 | Correct | 2 ms | 256 KB | Output is correct |
4 | Correct | 2 ms | 384 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 256 KB | Output is correct |
2 | Correct | 2 ms | 256 KB | Output is correct |
3 | Correct | 3 ms | 384 KB | Output is correct |
4 | Correct | 18 ms | 512 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 3 ms | 384 KB | Output is correct |
2 | Correct | 1 ms | 384 KB | Output is correct |
3 | Correct | 13 ms | 512 KB | Output is correct |
4 | Correct | 21 ms | 512 KB | Output is correct |
5 | Correct | 30 ms | 504 KB | Output is correct |
6 | Correct | 28 ms | 512 KB | Output is correct |
7 | Correct | 25 ms | 504 KB | Output is correct |
8 | Correct | 24 ms | 504 KB | Output is correct |