제출 #66010

#제출 시각아이디문제언어결과실행 시간메모리
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...