# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
113261 | starwh03 | 동전 게임 (KOI15_coin) | C++14 | 30 ms | 512 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<stdio.h>
int main()
{
int i,n,m,a,b,t=0;
scanf("%d %d",&n,&m);
for(i=1;i<=m;i++)
{
t=0;
scanf("%d %d",&a,&b);
if(a>b)
{
t=a;
a=b;
b=t;
t=1;
}
if(b-a-t<=n-b+1)
printf("1\n");
else
printf("0\n");
}
return 0;
}
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... |