| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 78364 | sh25_linzx | 药房管理 | C++ | Accepted | 0 MS | 252 KB | 202 | 2025-12-26 15:41:43 |
#include<bits/stdc++.h> using namespace std; int main() { int y,n,b,cnt=0; cin>>y>>n; for(int i=0;i<n;i++){ cin>>b; if(y>=b){ y-=b; } else { cnt++; } } cout<<cnt; }