답안 #151147

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
151147 2019-09-01T21:38:55 Z kuroni King of Chairs (FXCUP4_chairs) C++17
49 / 100
179 ms 10744 KB
#include "king.h"

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

set<pair<int, int>> se;

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

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

Compilation message

vassal.cpp: In function 'void Init(long long int, std::vector<int>)':
vassal.cpp:9:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < C.size(); i++)
                  ~~^~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 764 KB Correct
2 Correct 4 ms 760 KB Correct
3 Correct 4 ms 772 KB Correct
4 Correct 4 ms 764 KB Correct
5 Correct 4 ms 636 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 54 ms 5780 KB Wrong
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Partially correct 73 ms 5820 KB B = 133769420
2 Partially correct 132 ms 9504 KB B = 133769420
3 Partially correct 135 ms 10604 KB B = 133769420
4 Partially correct 147 ms 10740 KB B = 133769420
5 Partially correct 179 ms 10688 KB B = 133769420
6 Partially correct 156 ms 10744 KB B = 133769420
7 Partially correct 142 ms 10688 KB B = 133769420
8 Partially correct 123 ms 10680 KB B = 133769420