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> v;
string s;
int ar[1501];
int m;
void initialize(int n){
memset(ar, 0, sizeof(ar));
m = n;
}
int hasEdge(int u, int v){
ar[u]++; ar[v]++;
if(ar[u] == m-1 || ar[v] == m-1){
return 1;
}
return 0;
}
/* int main() {
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
int t =1;
//cin >> t;
for(int i = 1; i <= t; i++){
//cout << "Case " << i << ": ";
solve();
}
} */
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |