답안 #149074

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
149074 2019-09-01T05:42:10 Z White Fairy(#3613, wifi) King of Chairs (FXCUP4_chairs) C++17
100 / 100
154 ms 10460 KB
#include "king.h"

long long SendInfo(std::vector<int> W, std::vector<int> C) {
	int N = W.size();
	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 ret = it->second;
  st.erase(it);
  return ret;
}

Compilation message

king.cpp: In function 'long long int SendInfo(std::vector<int>, std::vector<int>)':
king.cpp:4:6: warning: unused variable 'N' [-Wunused-variable]
  int N = W.size();
      ^
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 1044 KB Correct
2 Correct 10 ms 1048 KB Correct
3 Correct 11 ms 1056 KB Correct
4 Correct 10 ms 1056 KB Correct
5 Correct 10 ms 1052 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 64 ms 5436 KB Correct
2 Correct 110 ms 9648 KB Correct
3 Correct 121 ms 10448 KB Correct
4 Correct 117 ms 10452 KB Correct
5 Correct 117 ms 10196 KB Correct
6 Correct 114 ms 10116 KB Correct
7 Correct 113 ms 10460 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 79 ms 5428 KB Correct
2 Correct 149 ms 9640 KB Correct
3 Correct 136 ms 10452 KB Correct
4 Correct 149 ms 10448 KB Correct
5 Correct 153 ms 10448 KB Correct
6 Correct 154 ms 10448 KB Correct
7 Correct 135 ms 10436 KB Correct
8 Correct 124 ms 10448 KB Correct