Non-equal Neighbours
1585F2400· grandmaster3s512 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
32 2 2
Output
2
Sample 2of 3
Input
22 3
Output
4
Sample 3of 3
Input
31 1 1
Output
0
58%
1585F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
32 2 2
2
22 3
4
31 1 1
0