Submission #148990

#TimeUsernameProblemLanguageResultExecution timeMemory
148990TeamSUA (#200)King of Chairs (FXCUP4_chairs)C++17
100 / 100
166 ms10444 KiB
#include "king.h" #include <bits/stdc++.h> using namespace std; long long SendInfo(vector<int> W, vector<int> C){ return 0; }
#include "vassal.h" #include <bits/stdc++.h> using namespace std; set<pair<int, int>> C; void Init(long long B, vector<int> C){ for (size_t i = 0; i < C.size(); ++i) ::C.emplace(C[i], i); } int Maid(int W){ auto p = C.lower_bound(make_pair(W, 0)); if (p == C.end()) return -1; int res = p->second; C.erase(p); return res; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...