Submission #533869

#TimeUsernameProblemLanguageResultExecution timeMemory
533869M_WGame (IOI14_game)C++11
0 / 100
1 ms284 KiB
#include "game.h" #include <stdio.h> using namespace std; int mindeg[1500], deg[1500]; void initialize(int n) { for(int i = 0; i < n; i++){ mindeg[i] = 1; deg[i] = n - 1; } } int hasEdge(int u, int v) { if(deg[u] == mindeg[u]){ mindeg[v]++; return 1; } if(deg[v] == mindeg[v]){ mindeg[u]++; return 1; } deg[u]--; deg[v]--; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...