| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 488703 | Drew_ | 게임 (IOI14_game) | C++17 | 1 ms | 220 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 <assert.h>
constexpr int MAX = 1507;
int node, ctr, edge;
int fq[MAX] = {};
void initialize(int n) {
node = n; ctr = edge = 0;
for (int i = 1; i <= n; ++i)
fq[i] = 0;
}
int hasEdge(int u, int v) {
ctr++;
fq[u]++, fq[v]++;
if (fq[u] == node-1 || fq[v] == node-1)
{
edge++;
return 1;
}
if (ctr-1 + node - 1 - edge == node * (node - 1) / 2)
{
edge++;
return 1;
}
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... | ||||
