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;
using idata = vector<int>;
idata c;
int N;
void initialize(int _N) {
N = _N;
c.resize(N);
iota(c.begin(), c.end(), 0);
}
int hasEdge(int u, int v) {
if (u > v) swap(u, v);
c[v] --;
return c[v] == 0 ? 1 : 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... |