#include<bits/stdc++.h> using namespace std; int n,w,u,e,q; int o[1000001],r[100001]; int main(){ cin>>n>>w;v u=max(1,i*w/100); r[++e]=o[i]; sort(r+1,r+1+e); q=u; for(int j=e;j>=1;j--) { q--; if(q==0) { cout<<r[j]<<' '; break; } } } return 0; }
测试点