求助!!!
查看原帖
求助!!!
583593
AC_bee楼主2024/7/12 19:26
#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;
}

测试点

2024/7/12 19:26
加载中...