Submission #641980

#TimeUsernameProblemLanguageResultExecution timeMemory
641980meowwGame (IOI14_game)C++14
0 / 100
1 ms212 KiB
#include <bits/stdc++.h> #include "game.h" using namespace std; int nn; map<pair<int,int>,int> con,done; map<int,int> cnt; void initialize(int n) { nn=n; } int hasEdge(int u, int v) { if (v>u) swap(u,v); if (done[{u,v}]==0) { cnt[u]++; cnt[v]++; if (cnt[u]==nn-1 || cnt[v]==nn-1) { con[{u,v}]=1; } } done[{u,v}]=1; return con[{u,v}]; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...