Submission #821388

#TimeUsernameProblemLanguageResultExecution timeMemory
821388thimote75Game (IOI14_game)C++14
100 / 100
246 ms16300 KiB
#include "game.h" #include <bits/stdc++.h> using namespace std; using idata = vector<int>; idata c; int N; void initialize(int _N) { N = _N; c.resize(N); iota(c.begin(), c.end(), 0); } int hasEdge(int u, int v) { if (u > v) swap(u, v); c[v] --; return c[v] == 0 ? 1 : 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...