cf/mirror

Hide and Seek

CF
1147A1500· specialist1s256 MB⌨ stdin/stdout
#graphs

Examples

Sample 1of 3
Input
5 3
5 1 4
Output
9
Sample 2of 3
Input
4 8
1 2 3 4 4 3 2 1
Output
0
Sample 3of 3
Input
100000 1
42
Output
299997
1147A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…