# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
128493 | antimirage | Game (IOI14_game) | C++14 | 2 ms | 376 KiB |
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>
//#include "grader.cpp"
using namespace std;
const int N = 1505;
int deg[N], used[N];
void initialize(int n) {
for (int i = 1; i <= n; i++) {
deg[i] = n - 1;
}
}
int hasEdge(int u, int v) {
u++;
v++;
if (deg[u] > 1 && deg[v] > 1) {
--deg[v];
--deg[u];
return 0;
}
if (deg[u] == 1 || deg[v] == 1) {
return 1;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |