Submission #148598

# Submission time Handle Problem Language Result Execution time Memory
148598 2019-09-01T04:45:07 Z 还没编好(#3801, cauchysheep, fjzzq2002, apiad) King of Chairs (FXCUP4_chairs) C++17
100 / 100
157 ms 10448 KB
#include "king.h"

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

set<pair<int,int>> st;
void Init(long long B, std::vector<int> C){
	int n=C.size();
	for (int i=0;i<n;i++) st.insert(make_pair(C[i],i));
}

int Maid(int W){
	auto it=st.lower_bound(make_pair(W,-1));
	if (it==st.end()) return -1;
	int z=it->second;
	st.erase(it);
	return z;
}
# Verdict Execution time Memory Grader output
1 Correct 10 ms 1048 KB Correct
2 Correct 10 ms 1056 KB Correct
3 Correct 10 ms 1060 KB Correct
4 Correct 10 ms 1060 KB Correct
5 Correct 11 ms 1060 KB Correct
# Verdict Execution time Memory Grader output
1 Correct 68 ms 5864 KB Correct
2 Correct 118 ms 9644 KB Correct
3 Correct 138 ms 10364 KB Correct
4 Correct 124 ms 10328 KB Correct
5 Correct 127 ms 10240 KB Correct
6 Correct 125 ms 10276 KB Correct
7 Correct 120 ms 10296 KB Correct
# Verdict Execution time Memory Grader output
1 Correct 81 ms 5952 KB Correct
2 Correct 157 ms 9384 KB Correct
3 Correct 136 ms 10440 KB Correct
4 Correct 155 ms 10328 KB Correct
5 Correct 148 ms 10448 KB Correct
6 Correct 151 ms 10448 KB Correct
7 Correct 135 ms 10444 KB Correct
8 Correct 124 ms 10336 KB Correct