cf/mirror

Doors Breaking and Repairing

CF
1102C1200· pupil1s256 MB⌨ stdin/stdout
#games

Examples

Sample 1of 3
Input
6 3 2
2 3 1 3 4 2
Output
6
Sample 2of 3
Input
5 3 3
1 2 4 2 3
Output
2
Sample 3of 3
Input
5 5 6
1 2 6 10 3
Output
2
1102C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)