제출 #1006498

#제출 시각아이디문제언어결과실행 시간메모리
1006498makanhulia게임 (IOI14_game)C++17
0 / 100
1 ms2396 KiB
#include<bits/stdc++.h> using namespace std; int n, deg[1505], vis[1505][1505]; void initialize(int n) { for(int i=1; i<=n; i++) { deg[i]=n-1; } } bool hasEdge(int u, int v) { if(u>v)swap(u, v); if(vis[u][v]==0) { vis[u][v]=1; deg[u]--;deg[v]--; } if(min(deg[u], deg[v])==0) { return true; } else { return false; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...