Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
23742 yihang 接水问题 C++ 解答错误 0 MS 252 KB 182 2023-07-16 17:02:39

Tests(0/10):


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


测评信息: