답안 #148990

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
148990 2019-09-01T05:30:54 Z TeamSUA(#3565, zimpha, sfiction, JTJL) King of Chairs (FXCUP4_chairs) C++17
100 / 100
166 ms 10444 KB
#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;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 532 KB Correct
2 Correct 10 ms 1044 KB Correct
3 Correct 12 ms 1048 KB Correct
4 Correct 11 ms 1048 KB Correct
5 Correct 11 ms 1044 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 68 ms 5788 KB Correct
2 Correct 113 ms 9628 KB Correct
3 Correct 118 ms 10440 KB Correct
4 Correct 120 ms 10444 KB Correct
5 Correct 119 ms 10440 KB Correct
6 Correct 123 ms 10440 KB Correct
7 Correct 123 ms 10436 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 80 ms 5932 KB Correct
2 Correct 144 ms 9624 KB Correct
3 Correct 136 ms 10436 KB Correct
4 Correct 159 ms 10436 KB Correct
5 Correct 166 ms 10432 KB Correct
6 Correct 162 ms 10444 KB Correct
7 Correct 138 ms 10444 KB Correct
8 Correct 137 ms 10436 KB Correct