ブルドーザー (Bulldozer)
Unrated
日本語
Language
Contribute a translation- Time limit
- 2000 ms
- Memory limit
- 512 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
5 -5 5 -2 2 5 10 1 4 -2 4 -5 4 -2 2 7
Sample output 1
19
Sample input 2
6 0 0 6 1 0 -2 2 0 8 0 1 -2 1 1 5 2 1 -2
Sample output 2
15
Sample input 3
5 0 0 2 4 0 2 3 2 -1 1 2 2 1 1 -1
Sample output 3
5
Sample input 4
2 0 0 -1 1 0 -1
Sample output 4
0
Sample input 5
15 10 3 30 5 10 -17 4 -5 14 0 -3 -9 -2 3 17 6 9 -19 -9 -6 -14 -2 -3 10 -3 -3 30 8 1 -28 9 -9 -5 7 -5 -24 -8 -10 5 -7 2 20 10 -3 -13
Sample output 5
107
Notes
JOI Open Contest 2017 · JCIOI · CC BY-SA 4.0
Tags
No tags yet