제출 #381668

#제출 시각아이디문제언어결과실행 시간메모리
381668Aryan_Raina게임 (IOI14_game)C++14
0 / 100
1 ms384 KiB
#include "game.h" #include<bits/stdc++.h> using namespace std; vector<int> cnt; int x, n; void initialize(int _n) { x = n = _n; cnt.assign(n, n-1); } int hasEdge(int u, int v) { cnt[u]--, cnt[v]--; int bb = (x < n-2); if (cnt[u] <= bb || cnt[v] <= bb) { --x; return 1; } else return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...