제출 #231841

#제출 시각아이디문제언어결과실행 시간메모리
231841triple_fault게임 (IOI14_game)C++14
0 / 100
4 ms256 KiB
/* fucking change this 2020 */ #include <cstdio> #include <vector> #include <algorithm> #include <cstring> #include <cstdlib> #include <set> #include <map> #include <random> #define ll int #define MAX 1501 using namespace std; ll vals[MAX]; void initialize(ll n) { for (ll i = 1; i <= n; ++i) vals[i] = n - 1; } ll hasEdge(ll u, ll v) { if (!vals[u] || !vals[v]) { if (vals[u]) --vals[u]; else --vals[v]; return 1; } else { --vals[v]; --vals[u]; return 0; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...