Submission #764549

#TimeUsernameProblemLanguageResultExecution timeMemory
764549Penaldo07Game (IOI14_game)C++17
100 / 100
248 ms16300 KiB
#include<game.h> #include<bits/stdc++.h> using namespace std; int deg[1505]; void initialize(int n){ for(int i = 0;i < n; i++) deg[i] = n - (i + 1); } int hasEdge(int u,int v){ if(u > v) swap(u, v); if(deg[u] > 0) deg[u]--; if(deg[u] != 0) return 0; return 1; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...