Petya and Countryside
66B1100· newbie2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
12
Output
1
Sample 2of 3
Input
51 2 1 2 1
Output
3
Sample 3of 3
Input
81 2 1 1 1 3 3 4
Output
6
58%
66B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
12
1
51 2 1 2 1
3
81 2 1 1 1 3 3 4
6