답안 #18023

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
18023 2016-01-18T11:32:49 Z gs13068 동전 게임 (KOI15_coin) C++
100 / 100
27 ms 1084 KB
#include<cstdio>
 
int main()
{
    int i,j,n,m;
    scanf("%d%d",&n,&m);
    while(m--)
    {
        scanf("%d%d",&i,&j);
        if((i<j&&2*j>n+i+1)||(i>j&&i+i>n+j+2))puts("0");
        else puts("1");
    }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 1084 KB Output is correct
2 Correct 0 ms 1084 KB Output is correct
3 Correct 0 ms 1084 KB Output is correct
4 Correct 0 ms 1084 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 1084 KB Output is correct
2 Correct 0 ms 1084 KB Output is correct
3 Correct 0 ms 1084 KB Output is correct
4 Correct 0 ms 1084 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 1084 KB Output is correct
2 Correct 0 ms 1084 KB Output is correct
3 Correct 0 ms 1084 KB Output is correct
4 Correct 19 ms 1084 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 1084 KB Output is correct
2 Correct 0 ms 1084 KB Output is correct
3 Correct 14 ms 1084 KB Output is correct
4 Correct 0 ms 1084 KB Output is correct
5 Correct 0 ms 1084 KB Output is correct
6 Correct 27 ms 1084 KB Output is correct
7 Correct 24 ms 1084 KB Output is correct
8 Correct 25 ms 1084 KB Output is correct