# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
381634 | ritul_kr_singh | Game (IOI14_game) | C++17 | 1 ms | 364 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"
using namespace std;
vector<int> e;
int n, total;
void initialize(int N){
n = N;
total = 0;
e.assign(n+1, 1);
}
int hasEdge(int u, int v){
++e[u], ++e[v];
return (e[u]==n or e[v]==n and total*2LL<(n*(n-1LL)));
}
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... |