Submission #18464

# Submission time Handle Problem Language Result Execution time Memory
18464 2016-02-05T06:34:12 Z eaststar 동전 게임 (KOI15_coin) C++14
0 / 100
0 ms 1084 KB
#include <stdio.h>
int main(){
    int k,t,x,y;
    scanf("%d%d",&k,&t);
    for(;t--;){
        scanf("%d%d",&x,&y);
        if(x>y){
            if(k-x+1>=x-y)puts("1");
            else puts("0");
        }
        else{
            if(k-y+1>=y-x)puts("1");
            else puts("0");
        }
    }
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1084 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1084 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1084 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1084 KB Output isn't correct
2 Halted 0 ms 0 KB -