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;
vector<int> in;
void initialize(int n) {
in.resize(n, n - 1);
}
int hasEdge(int u, int v) {
if (u > v) swap(u, v);
--in[v];
--in[u];
return !in[u] || !in[v];
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |