Steppe on It
Unrated
English
Language
Contribute a translation- Time limit
- 3000 ms
- Memory limit
- 2048 MB (no extra memory)
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
6 2 1 8 2 7 2 7 3 6 3 5
Sample output 1
8
Sample input 2
3 3 1 1000 2 1000
Sample output 2
0
Tags
No tags yet