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

16
1.1115.cpp Normal file
View File

@ -0,0 +1,16 @@
#include<cstdio>
#include<algorithm>
using namespace std;
int n,x,res,now;
int main()
{
scanf("%d%d",&n,&res); now=res;
for(int i=1;i<n;i++)
{
scanf("%d",&x);
now=max(now+x,x);
res=max(now,res);
}
printf("%d\n",res);
return 0;
}