제출 #597663

#제출 시각아이디문제언어결과실행 시간메모리
597663enerelt14게임 (IOI14_game)C++14
0 / 100
1 ms212 KiB
#include "game.h" #include<bits/stdc++.h> using namespace std; int N, ne[1505], re[1505]; void initialize(int n) { N=n; for (int i=1;i<=n;i++){ ne[i]=n; re[i]=n*(n+1)/2; } } int hasEdge(int u, int v) { ne[u]--; ne[v]--; re[u]-=v; re[v]-=u; if (ne[u]==0 || ne[v]==0)return 1; if (ne[u]==1 && ne[re[u]]==1)return 1; if (ne[v]==1 && ne[re[v]]==1)return 1; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...