Submission #149278

#TimeUsernameProblemLanguageResultExecution timeMemory
149278----MIT합격선---- (#200)King of Chairs (FXCUP4_chairs)C++17
100 / 100
187 ms10456 KiB
#include "king.h" #include <algorithm> using namespace std; typedef long long lint; long long SendInfo(std::vector<int> W, std::vector<int> C) { return 0; }
#include "vassal.h" #include <algorithm> #include <utility> #include <set> using namespace std; typedef pair<int, int> pii; set<pii> A; int n; void Init(long long B, std::vector<int> C){ n = C.size(); for(int i=0; i<n; i++) A.insert({C[i], i}); } int Maid(int W){ auto it = A.lower_bound({W,0}); if(it==A.end()) return -1; int ret = it->second; A.erase(it); return ret; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...