제출 #641980

#제출 시각아이디문제언어결과실행 시간메모리
641980meoww게임 (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...