Submission #381668

#TimeUsernameProblemLanguageResultExecution timeMemory
381668Aryan_RainaGame (IOI14_game)C++14
0 / 100
1 ms384 KiB
#include "game.h" #include<bits/stdc++.h> using namespace std; vector<int> cnt; int x, n; void initialize(int _n) { x = n = _n; cnt.assign(n, n-1); } int hasEdge(int u, int v) { cnt[u]--, cnt[v]--; int bb = (x < n-2); if (cnt[u] <= bb || cnt[v] <= bb) { --x; return 1; } else return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...