Submission #50157

#TimeUsernameProblemLanguageResultExecution timeMemory
50157TalantGame (IOI14_game)C++17
0 / 100
3 ms636 KiB
#include "game.h" #include <bits/stdc++.h> using namespace std; const int N = (int)1e5 + 5; int nn; int cn[N]; void initialize(int n) { for (int i = 0; i < n; i ++) cn[i] = n - 1; } int hasEdge(int u, int v) { if (cn[u] == 1 || cn[v] == 1) { cn[v] --; cn[u] --; return 1; } else { cn[u] --,cn[v] --; return 0; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...