Submission #835164

#TimeUsernameProblemLanguageResultExecution timeMemory
835164LiudasGame (IOI14_game)C++17
100 / 100
233 ms16316 KiB
#include <iostream> #include <numeric> #include <vector> using namespace std; vector<int>arr; void initialize(int N){ arr.resize(N); iota(arr.rbegin()+1, arr.rend(), 0); } int hasEdge(int u, int v){ if(arr[min(u, v)] == 0){ return 1; } else{ arr[min(u, v)]--; return 0; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...