Garage
Unrated
English
Language
Contribute a translation- Time limit
- 1000 ms
- Memory limit
- 32 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
3 4 2 3 5 200 100 300 800 3 2 -3 1 4 -4 -2 -1
Sample output 1
5300
Sample input 2
2 4 5 2 100 500 1000 2000 3 1 2 4 -1 -3 -2 -4
Sample output 2
16200
Tags
No tags yet