답안 #149205

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
149205 2019-09-01T05:57:35 Z Avengers(#3759, Blagojce) King of Chairs (FXCUP4_chairs) C++17
0 / 100
72 ms 5992 KB
#include <bits/stdc++.h>
#define fr(i, n, m) for(int i = (n); i < (m); i ++)
#define pb push_back
#define st first
#define nd second
#define all(x) begin(x),end(x);

using namespace std;
typedef long long ll;
#include "king.h"

long long SendInfo(std::vector<int> W, std::vector<int> C) {
	int N = W.size();
	return W[0]*100 + W[1]*10 + W[2]*1;
}

#include <bits/stdc++.h>
#define fr(i, n, m) for(int i = (n); i < (m); i ++)
#define pb push_back
#define st first
#define nd second
#define all(x) begin(x),end(x);

using namespace std;
typedef long long ll;
/*#include "king.h"

long long SendInfo(std::vector<int> W, std::vector<int> C) {
	int N = W.size();
	return W[0]*100 + W[1]*10 + W[2]*1;
}
*/
#include "vassal.h"

long long BB;
set<pair<int,int> > s;
void Init(long long B, std::vector<int> C){
	int N = C.size();
	fr(i, 0, N) s.insert({C[i], i});
	BB = B;
	// ToDo
}

int Maid(int W){
        auto u = s.lower_bound({W, 1e5});
        s.erase(u);
	return u->nd;
}

Compilation message

king.cpp: In function 'long long int SendInfo(std::vector<int>, std::vector<int>)':
king.cpp:13:6: warning: unused variable 'N' [-Wunused-variable]
  int N = W.size();
      ^
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 1044 KB Correct
2 Runtime error 12 ms 920 KB Execution killed with signal 11 (could be triggered by violating memory limits)
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 66 ms 5732 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 72 ms 5992 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -