Submission #18023

#TimeUsernameProblemLanguageResultExecution timeMemory
18023gs13068동전 게임 (KOI15_coin)C++98
100 / 100
27 ms1084 KiB
#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"); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...