cf/mirror

Maximums

CF
1326B900· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
5
0 1 1 -2 1
Output
0 1 2 0 3
Sample 2of 3
Input
3
1000 999999000 -1000000000
Output
1000 1000000000 0
Sample 3of 3
Input
5
2 1 2 2 3
Output
2 3 5 7 10
1326B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)