Treasure Hunting
1201D2100· master3s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
3 3 3 21 12 13 12 3
Output
6
Sample 2of 3
Input
3 5 3 21 22 33 11 5
Output
8
Sample 3of 3
Input
3 6 3 21 62 23 41 6
Output
15
58%
1201D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)