#include<bits/stdc++.h>
using namespace std;
int f[605];
int main(){
int n,w;
cin>>n>>w;
for(int i=1;i<=n;i++){
int x;
cin>>x;
f[x]++;
int sum=0;
for(int j=600;j>=0;j--){
sum+=f[j];
if(sum>=(max(1,i*w/100))){
cout<<j<<" ";
break;
}
}
}
return 0;
}
11-25
1787
1787
11-27
1131
1131
07-27
834
834

被折叠的 条评论
为什么被折叠?



