Submission #65646

#TimeUsernameProblemLanguageResultExecution timeMemory
65646KubalionzzaleGame (IOI14_game)C++14
0 / 100
2 ms412 KiB
#include "game.h" int cnt[160000] = { 0 }; int max; void initialize(int n) { max = n; } int hasEdge(int u, int v) { ++cnt[u]; ++cnt[v]; if (cnt[u] == max - 1 || cnt[v] == max - 1) { cnt[u] = 1e6; cnt[v] = 1e6; return 1; } else return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...