제출 #151395

#제출 시각아이디문제언어결과실행 시간메모리
151395AlexPop28King of Chairs (FXCUP4_chairs)C++17
100 / 100
186 ms13140 KiB
#include "king.h"

long long SendInfo(std::vector<int> W, std::vector<int> C) {
  return 0LL;
}
#include <bits/stdc++.h>
#include "vassal.h"
using namespace std;

set<pair<int, int>> chairs;

void Init(long long B, vector<int> C){
  for (int &x : C) chairs.emplace(x, B++);
}

int Maid(int W){
  auto it = chairs.lower_bound({W, 0});
  if (it == chairs.end()) return -1;
  int pos = it->second;
  chairs.erase(it);
  return pos;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...