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;
int freq[1502], maks;
void initialize(int n) {
maks = n-1;
}
bool hasEdge (int u, int v) {
freq[u]++; freq[v]++;
if (freq[u] == maks|| freq[v] == maks) return 1;
else return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |