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;
/*
n = 4
0 1
0 2
0 3
1 2
1 3
2 3
*/
vector<int> cnt;
void initialize(int n) {
cnt.resize(n);
}
int hasEdge(int u, int v) {
++cnt[max(u, v)];
return cnt[max(u, v)] == max(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... |