Shopping Offers
Unrated
English
Language
Contribute a translation- Time limit
- 4000 ms
- Memory limit
- 512 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
2 7 3 2 8 2 5 2 1 7 3 5 2 7 1 8 2 10
Sample output 1
14
Tags
No tags yet