제출 #533869

#제출 시각아이디문제언어결과실행 시간메모리
533869M_W게임 (IOI14_game)C++11
0 / 100
1 ms284 KiB
#include "game.h" #include <stdio.h> using namespace std; int mindeg[1500], deg[1500]; void initialize(int n) { for(int i = 0; i < n; i++){ mindeg[i] = 1; deg[i] = n - 1; } } int hasEdge(int u, int v) { if(deg[u] == mindeg[u]){ mindeg[v]++; return 1; } if(deg[v] == mindeg[v]){ mindeg[u]++; return 1; } deg[u]--; deg[v]--; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...