This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#ifndef _GAME_H
#define _GAME_H
#include<bits/stdc++.h>
int N,nr[1510];
void initialize(int n)
{
for(int i=0;i<n;++i)
nr[i]=0;
}
int hasEdge(int u, int v)
{
if(v>u)
v^=u^=v^=u;
++nr[u];
if(nr[u]==u)
return 1;
return 0;
}
#endif
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |