| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 70833 | sh25_wangsj | 药房管理 | C++ | Accepted | 0 MS | 248 KB | 314 | 2025-10-21 20:14:53 |
#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; }