제출 #315483

#제출 시각아이디문제언어결과실행 시간메모리
315483qpwoeirut게임 (IOI14_game)C++17
0 / 100
1 ms384 KiB
#include "game.h" const int MN = 1501; int N; int mat[MN][MN]; int ct[MN]; void initialize(int n) { N = n; for (int i=0; i<N; ++i) { for (int j=0; j<N; ++j) { mat[i][j] = -1; } ct[i] = 0; } } int hasEdge(int u, int v) { ++ct[u]; ++ct[v]; return ct[u] == N-1 || ct[v] == N-1; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...