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 "game.h"
#include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define rep(i,a,b) for (lli i = (a); i <= (b); i++)
lli arr[1502],N;
void initialize(int n) {
N = n;
rep(i,0,n-1) arr[i] = n - 1;
}
int hasEdge(int u, int v) {
arr[u]--;
arr[v]--;
if (arr[u] == N-2 && arr[v] == N-2) return 1;
else if (arr[u] == 0 || arr[v] == 0) 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... |