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