제출 #13338

#제출 시각아이디문제언어결과실행 시간메모리
13338ggoh게임 (IOI14_game)C++98
0 / 100
0 ms9876 KiB
#include<cstdio> int w[1501],m,t; void initialize(int n) { m=n; } int hasEdge(int u,int v) { if(t>=m*(m-1)/2-m+1) { return 1; } if(w[u]>=m-2||w[v]>=m-2) { w[u]++; w[v]++; t++; return 1; } else { w[u]++; w[v]++; t++; return 0; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...