Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
28825 我要进前十(黄泽远) 直播获奖CSP2020 J组 C++ 编译错误 0 MS 0 KB 318 2023-10-03 10:34:41

Tests(0/0):


#include "bits/stdc++.h" #define int long long using namespace std; int s,t[1000000]; signed main(){ int n,w; cin>>n>>w; int a=0; for(int i=1;i<=n;i++){ cin>>s; t[s]++; for(int j=600;j>=0;j--){ a+=t[j]; if(a>=max(1,i*w/100)){ cout<<j<<' '; break; } } } return 0; }


测评信息: