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

15
1.1181.cpp Normal file
View File

@ -0,0 +1,15 @@
// luogu-judger-enable-o2
#include<cstdio>
int n,m,res=1,now,x;
int main()
{
scanf("%d%d",&n,&m);
for(int i=0;i<n;i++)
{
scanf("%d",&x);
if(now+x>m) res++,now=x;
else now+=x;
}
printf("%d\n",res);
return 0;
}