# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
734046 | guagua0407 | Game (IOI14_game) | C++17 | 0 ms | 0 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.
const int mxn=1505;
int cnt[mxn];
int n;
void initialize(int N){
n=N;
}
int hasEdge(int a, int b){
if(a>b) swap(a,b);
cnt[b]++;
if(cnt[b]==b) return 1;
return 0;
}