제출 #764549

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