답안 #148673

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
148673 2019-09-01T04:54:23 Z rkm0959(#3623, jun6873, babo) King of Chairs (FXCUP4_chairs) C++17
100 / 100
165 ms 10448 KB
#include <bits/stdc++.h>
#define L long long

using namespace std;

L SendInfo(vector<int>W, vector<int>C){
	return 0;
}
#include <bits/stdc++.h>
#define L long long

using namespace std;

multiset<pair<int,int> >st;

void Init(L V, vector<int>C){
	for(int i=0;i<C.size();i++){
		st.insert(make_pair(C[i],i));
	}
}

int Maid(int w){
	multiset<pair<int,int> >::iterator it=st.lower_bound(make_pair(w,0));
	if(it!=st.end())
	{
		int ret=it->second;
		st.erase(it);
		return ret;
	}
	return -1;
}

Compilation message

vassal.cpp: In function 'void Init(long long int, std::vector<int>)':
vassal.cpp:9:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<C.size();i++){
              ~^~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 1048 KB Correct
2 Correct 11 ms 1044 KB Correct
3 Correct 11 ms 1044 KB Correct
4 Correct 11 ms 1044 KB Correct
5 Correct 11 ms 1044 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 66 ms 5940 KB Correct
2 Correct 113 ms 9372 KB Correct
3 Correct 121 ms 10432 KB Correct
4 Correct 122 ms 10432 KB Correct
5 Correct 114 ms 10276 KB Correct
6 Correct 127 ms 10356 KB Correct
7 Correct 127 ms 10436 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 87 ms 5944 KB Correct
2 Correct 146 ms 9672 KB Correct
3 Correct 150 ms 10436 KB Correct
4 Correct 165 ms 10372 KB Correct
5 Correct 152 ms 10436 KB Correct
6 Correct 154 ms 10440 KB Correct
7 Correct 135 ms 10180 KB Correct
8 Correct 120 ms 10448 KB Correct