# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1155816 | an22inkle | Game (IOI14_game) | C++20 | 0 ms | 328 KiB |
#include "game.h"
#include <bits/stdc++.h>
using namespace std;
int N = 0, asked = 0, R = 0;
void initialize(int n) {
N = n;
R = N*(N+1)/2;
}
int hasEdge(int u, int v) {
asked++;
if (asked < 3 || asked == R) {
return 1;
} else {
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... |