Submission #146590

#TimeUsernameProblemLanguageResultExecution timeMemory
146590karmaGame (IOI14_game)C++14
0 / 100
2 ms376 KiB
#include <bits/stdc++.h> #include "game.h" using namespace std; int cnt[1500], nVertex, full; int hasEdge(int u, int v) { ++cnt[--u], ++cnt[--v]; if(cnt[u] == nVertex) ++full; if(cnt[v] == nVertex) ++full; if(full < nVertex - 1 && (cnt[u] == nVertex || cnt[v] == nVertex)) return 1; return 0; } void initialize(int n) { nVertex = n; full = 0; fill(cnt, cnt + n, 0); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...