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>
#define endl "\n"
#define yeap cout<<"YES"<<endl
#define nope cout<<"NO"<<endl
#define ll long long
using namespace std;
#include "game.h"
ll cnt, a;
void initialize(int n) {
cnt = 0;
a = n;
}
int hasEdge(int u, int v) {
if(cnt==a-2){
return 0;
} else {
if(u+1==v || v+1==u){
cnt++;
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... |