Mysterious Crime
1043D1700· expert1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
3 21 2 32 3 1
Output
4
Sample 2of 3
Input
5 61 2 3 4 52 3 1 4 53 4 5 1 23 5 4 2 12 3 5 4 11 2 3 4 5
Output
5
Sample 3of 3
Input
2 21 22 1
Output
2
58%
1043D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)