Submission #66010

#TimeUsernameProblemLanguageResultExecution timeMemory
66010CrownGame (IOI14_game)C++14
0 / 100
3 ms736 KiB
#include "game.h" const int maxn = 1505; int deg[maxn]; int n; int tot; void initialize(int _n) { n = _n; tot = n*(n-1)/2; } int hasEdge(int u, int v) { deg[u]++; deg[v]++; bool res = false; if(deg[u] == n-1 || deg[v] == n-1) res = true; if(res && tot == n-1) res = false; if(res) tot--; return res; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...