Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
28813 a_tulips 直播获奖CSP2020 J组 C++ 运行超时 1000 MS 368 KB 288 2023-10-03 10:04:26

Tests(10/20):


#include<bits/stdc++.h> using namespace std; bool cmp(int x,int y) { return x>y; } int a[100000],s[100000]; int main() { int n,w; cin>>n>>w; for(int i=1;i<=n;i++) { cin>>a[i]; s[i]=a[i]; sort(s+1,s+n+1,cmp); cout<<s[max(1,(i*w/100))]<<" "; } return 0; }


测评信息: