発電所 (Power Plant)
Unrated
日本語
Language
Contribute a translation- Time limit
- 10000 ms
- Memory limit
- 512 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
6 2 3 4 3 1 3 3 5 6 2 110011
Sample output 1
3
Sample input 2
8 1 2 3 5 6 4 4 5 5 2 7 2 2 8 11111111
Sample output 2
3
Sample input 3
16 7 10 5 11 9 4 14 12 2 11 14 16 4 2 1 13 11 3 7 1 15 9 2 1 11 6 14 9 8 9 0111111001001110
Sample output 3
5
Notes
JOI Open Contest 2020 · JCIOI · CC BY-SA 4.0
Tags
No tags yet