Ancient Berland Hieroglyphs
164B2000· candidate master1.5s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
5 41 2 3 4 51 3 5 6
Output
2
Sample 2of 3
Input
4 61 3 5 21 2 3 4 5 6
Output
3
Sample 3of 3
Input
3 31 2 33 2 1
Output
2
58%
164B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)