답안 #149468

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
149468 2019-09-01T06:33:18 Z Ragtag Volunteers(#3721, spellstaker, iamssk, ParaSpawn) King of Chairs (FXCUP4_chairs) C++17
100 / 100
168 ms 10512 KB
#include "king.h"

long long SendInfo(std::vector<int> W, std::vector<int> C) {
	return 0;
}
#include "vassal.h"

#include <set>

using namespace std;

long long BB;
set<pair<int, int> > s;
void Init(long long B, std::vector<int> C){
	int N = C.size();
	for (int i = 0; i < N; i++) {
		s.emplace(C[i], i);
	}
}

int Maid(int W){
	auto it = s.lower_bound({W, -1});
	if (it == s.end()) {
		return -1;
	}
	const int res = it->second;
	s.erase(it);
	return res;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 1036 KB Correct
2 Correct 12 ms 972 KB Correct
3 Correct 11 ms 1012 KB Correct
4 Correct 10 ms 972 KB Correct
5 Correct 12 ms 936 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 72 ms 5836 KB Correct
2 Correct 117 ms 9580 KB Correct
3 Correct 137 ms 10416 KB Correct
4 Correct 128 ms 10328 KB Correct
5 Correct 133 ms 10244 KB Correct
6 Correct 122 ms 10164 KB Correct
7 Correct 124 ms 10360 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 92 ms 5848 KB Correct
2 Correct 168 ms 9644 KB Correct
3 Correct 146 ms 10360 KB Correct
4 Correct 158 ms 10512 KB Correct
5 Correct 153 ms 10452 KB Correct
6 Correct 150 ms 10452 KB Correct
7 Correct 135 ms 10440 KB Correct
8 Correct 122 ms 10448 KB Correct