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;
vector < int > freq;
void initialize ( int n ){
freq.resize(n);
}
int hasEdge ( int u, int v ){
freq[max(u, v)]++;
return ( freq[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... |