답안 #148360

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
148360 2019-09-01T04:05:12 Z 본인 하지만 안 어림 ㅋㅋ(#3569, gs13105, xdoju, gs13068) King of Chairs (FXCUP4_chairs) C++17
100 / 100
158 ms 10460 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;

multiset<pair<int, int> > S;

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

int Maid(int W){
	auto t = S.lower_bound(make_pair(W, -1));
	if (t == S.end()) return -1;
	int r = t->second;
	S.erase(t);
	return r;
}

Compilation message

vassal.cpp: In function 'void Init(long long int, std::vector<int>)':
vassal.cpp:9:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < C.size(); i++) S.emplace(C[i], i);
                  ~~^~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 548 KB Correct
2 Correct 11 ms 1060 KB Correct
3 Correct 11 ms 1056 KB Correct
4 Correct 11 ms 1060 KB Correct
5 Correct 11 ms 1056 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 65 ms 5708 KB Correct
2 Correct 108 ms 9388 KB Correct
3 Correct 115 ms 10440 KB Correct
4 Correct 114 ms 10448 KB Correct
5 Correct 117 ms 10448 KB Correct
6 Correct 117 ms 10448 KB Correct
7 Correct 115 ms 10456 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 79 ms 5948 KB Correct
2 Correct 146 ms 9644 KB Correct
3 Correct 130 ms 10444 KB Correct
4 Correct 158 ms 10252 KB Correct
5 Correct 147 ms 10448 KB Correct
6 Correct 151 ms 10460 KB Correct
7 Correct 135 ms 10440 KB Correct
8 Correct 123 ms 10444 KB Correct