cf/mirror

Vika and the Bridge

CF
1848B1200· pupil1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
5 2
1 1 2 1 1
7 3
1 2 3 3 3 2 1
6 6
1 2 3 4 5 6
8 4
1 2 3 4 2 3 1 4
3 1
1 1 1
Output
0
1
2
2
0
1848B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)