# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
109878 | dantoh000 | Game (IOI14_game) | C++14 | 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.
#include <bits/stdc++.h>
#include "game.h"
int ct[1005];
int n;
void initialize(int _n) {
n = _n;
}
int hasEdge(int u, int v) {
int k = max(u,v);
ct[k]++;
if (ct[k] == k) return 1;
else return 0;
}