제출 #1033248

#제출 시각아이디문제언어결과실행 시간메모리
1033248ender게임 (IOI14_game)C++17
0 / 100
0 ms348 KiB
#include "game.h" #include <bits/stdc++.h> using namespace std; const int N = 1502; vector<int> cnt(N, 0); int actn; void initialize(int n) { actn = n; for(int i = 0; i < n; ++i){ cnt[i]++; } } int hasEdge(int u, int v) { if(cnt[u] == actn-1 || cnt[v] == actn-1){ cnt[u]++; cnt[v]++; return 1; } else { cnt[u]++; cnt[v]++; return 0; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...