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<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 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... |