Submission #148637

# Submission time Handle Problem Language Result Execution time Memory
148637 2019-09-01T04:49:41 Z rkm0959(#3623, jun6873, babo) King of Chairs (FXCUP4_chairs) C++17
0 / 100
52 ms 3884 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(auto i:C){
		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;
}
# Verdict Execution time Memory Grader output
1 Runtime error 10 ms 1048 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 52 ms 3636 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 52 ms 3884 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -