답안 #148812

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
148812 2019-09-01T05:09:57 Z 1 WA = 5 Push Up(#3624, BaaaaaaaaaaaaaaaarkingDog, IohcEjnim, 0xrgb) King of Chairs (FXCUP4_chairs) C++17
100 / 100
159 ms 10456 KB
#include "king.h"
//#include <bits/stdc++.h>
#include <vector>
using namespace std;
long long SendInfo(vector<int> W, vector<int> C) {
	int N = W.size();
  return 0;
}
#include "vassal.h"
//#include <bits/stdc++.h>
#include <vector>
#include <set>
#include <utility>
using namespace std;
long long BB;
vector<int> schedule(11);
int N;
int idx = -1;
set<pair<int,int> > S;
void Init(long long B, vector<int> C){
	int N = C.size();
	for(int i = 0; i < N; i++) S.insert({C[i], i});
}

int Maid(int W){
  auto it = S.lower_bound({W,-1});
  if(it == S.end()) return -1;
  int ret = it->second;  
  S.erase(it);
	return ret;
}

Compilation message

king.cpp: In function 'long long int SendInfo(std::vector<int>, std::vector<int>)':
king.cpp:6:6: warning: unused variable 'N' [-Wunused-variable]
  int N = W.size();
      ^
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 1060 KB Correct
2 Correct 12 ms 1052 KB Correct
3 Correct 11 ms 1060 KB Correct
4 Correct 10 ms 1056 KB Correct
5 Correct 11 ms 804 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 66 ms 5948 KB Correct
2 Correct 108 ms 9636 KB Correct
3 Correct 118 ms 10448 KB Correct
4 Correct 120 ms 10448 KB Correct
5 Correct 114 ms 10200 KB Correct
6 Correct 119 ms 10196 KB Correct
7 Correct 113 ms 9932 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 77 ms 5952 KB Correct
2 Correct 144 ms 9636 KB Correct
3 Correct 127 ms 10456 KB Correct
4 Correct 156 ms 10448 KB Correct
5 Correct 159 ms 10448 KB Correct
6 Correct 150 ms 9948 KB Correct
7 Correct 136 ms 10196 KB Correct
8 Correct 122 ms 10452 KB Correct