# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1006443 | christinelynn | 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.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll MAXN = 2e3 + 5;
ll m;
ll a [MAXN];
void initialize(ll n){
m = n;
}
bool hasEdge(ll u, ll v){
a[u]++, a[v]++;
if(a[u] == m-1 || a[v] == m-1) return 1;
return 0;
}