| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77436 | sh25_shenpy | 装箱问题 | C++ | 解答错误 | 0 MS | 248 KB | 292 | 2025-12-24 21:40:28 |
#include<bits/stdc++.h> using namespace std; int main(){ int v,n; int s[n]; cin>>v; cin>>n; for(int i=0;i<n;++i){ cin>>s[i]; v-=s[i]; if(v<=0){ cout<<0; return 0; } } cout<<v; return 0; }