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"
using namespace std;
int nn;
map<pair<int,int>,int> con;
map<int,int> cnt;
void initialize(int n) {
nn=n;
}
int hasEdge(int u, int v) {
if (v>u) swap(u,v);
cnt[u]++; cnt[v]++;
if (cnt[u]==nn-1 || cnt[v]==nn-1) {
con[{u,v}]=1;
}
return con[{u,v}];
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |