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