# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1006511 | 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;
#define int long long
#define endl "\n"
vector < int > freq;
void initialize ( int n ){
freq.resize(n, 0);
}
bool hasEdge ( int u, int v ){
freq[u]++;
freq[v]++;
if ( max ( freq[u], freq[v]) == freq.size() - 1 ) return true;
else return false;
}