# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1207189 | agusst | Game (IOI14_game) | C++20 | 0 ms | 328 KiB |
#include "game.h"
#include <bits/stdc++.h>
using namespace std;
bool start = 1;
vector<int> arr;
int tres = 3;
void initialize(int n) {
arr.assign(n, 0);
}
int hasEdge(int u, int v) {
if(start){
start = 0;
arr[u]++;
arr[v]++;
return 1;
}
if(!arr[u] and !arr[v]) return 1;
if(tres > 0){
tres--;
return 0;
}
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... |