delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

View File

@ -0,0 +1,17 @@
#include<cstdio>
using namespace std;
int main()
{
int m,n,ans=0;
scanf("%d%d",&m,&n);
int x;
for(int i=0;i<n;i++)
{
scanf("%d",&x);
if(x>m) ans++;
else m-=x;
}
printf("%d\n",ans);
return 0;
}