Home > database >  Why bosses oj the architectural segment and only gives eight points.
Why bosses oj the architectural segment and only gives eight points.

Time:09-30

# include
Int main ()
{

Int a, b, sum=0;
The scanf (" % d ", & a);
Int h [a] m [a];
for(int i=0; I {
The scanf (" % d ", & h [I]);
}
M [0]=h [0];
Int Max=m [0];
for(int i=1; I {
If (m] [I - 1> 0)
M=[I] m [I - 1) + h [I];
The else
[I] m [I]=h;
If (m> Max [I])
Max=m [I];
}
Printf (" % d ", Max);
}
  • Related