Submission #229509

#TimeUsernameProblemLanguageResultExecution timeMemory
229509tushar_2658Game (IOI14_game)C++14
0 / 100
5 ms384 KiB
#include "game.h" #include "bits/stdc++.h" using namespace std; const int maxn = 1505; int deg[maxn]; int N; void initialize(int n) { N = n; } int hasEdge(int u, int v) { if(deg[u] + 1 == N - 1 or deg[v] + 1 == N - 1){ return 0; }else { ++deg[u], ++deg[v]; return 1; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...