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 "game.h"
int con=0,a,b,ok=0;
void initialize(int n)
{
return ;
}
int hasEdge(int u, int v)
{
con++;
if(con==1)
{
a=u,b=v;
return 1;
}
else if(con==6) return 1;
else
{
if(u!=a&&u!=b&&v!=a&&v!=b)
{
ok=1;
return 1;
}
else if(ok==0&&con==5) return 1;
return 0;
}
}
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |