cf/mirror

Into Blocks (easy version)

CF
1209G12000· candidate master5s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
5 0
3 7 3 7 3
Output
2
Sample 2of 4
Input
10 0
1 2 1 2 3 1 1 1 50 1
Output
4
Sample 3of 4
Input
6 0
6 6 3 3 4 4
Output
0
Sample 4of 4
Input
7 0
3 3 1 3 2 1 2
Output
4
1209G1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…