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;
#include "game.h"
set<int> val;
int s = 0;
void initialize(int n){
s = n;
}
int hasEdge(int u, int v){
if ((long long)(val.size()) == s - 1){
if (val.count(u) && val.count(v)) return 1;
else return 0;
}else if ((long long)(val.size()) == s - 2){
if (!val.count(u) && !val.count(v)) return 0;
else return 1;
}else return 1;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |