Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
70833 sh25_wangsj 药房管理 C++ 通过 0 MS 248 KB 314 2025-10-21 20:14:53

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int a,b,y; cin>>a>>b; int s=0; for(int i=0;i<b;i=i+1){ cin>>y; if(y>a) { s=s+1; } else{ a=a-y; } } cout<<s; return 0; }


测评信息: