| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1344490 | kantaponz | Game (IOI14_game) | C++20 | 167 ms | 7052 KiB |
#include "game.h"
#include <bits/stdc++.h>
using namespace std;
const int nx = 1505;
int rem[nx];
void initialize(int n) {
for (int i = 0; i < n; i++) rem[i] = i - 1;
}
int hasEdge(int u, int v) {
if (u > v) swap(u, v);
//cout << u << " " << v << "\n";
if (rem[v] > 0) {
rem[v]--;
return 0;
} else {
return 1;
}
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
