Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
23746 U•ェ•*✔ 接水问题 C++ 运行出错 1 MS 240 KB 190 2023-07-16 17:05:59

Tests(0/10):


#include"bits/stdc++.h" using namespace std; int s[1005]; int main(){ int n,m,x; cin>>n>>m; while(n--){ cin>>x; sort(s,s+m); s[0]+=x; } sort(s,s+n); cout<<s[m-1]; }


测评信息: