mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-26 23:51:58 +00:00
16 lines
338 B
C++
16 lines
338 B
C++
|
#include <bits/stdc++.h>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
int main() {
|
||
|
int n, w, t;
|
||
|
vector<int> score;
|
||
|
cin >> n >> w;
|
||
|
for (int i = 1; i <= n; i++) {
|
||
|
cin >> t;
|
||
|
score.insert(lower_bound(score.begin(), score.end(), t), t);
|
||
|
cout << score[score.size() - max(1, i * w / 100)] << ' ';
|
||
|
}
|
||
|
return 0;
|
||
|
}
|