# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
320983 | tjdgus4384 | 동전 게임 (KOI15_coin) | C++14 | 26 ms | 1260 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<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 (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... |