Submission #123893

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