Numbers on the Chessboard
1027B1200· pupil1s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
4 51 14 44 33 22 4
Output
1816134
Sample 2of 2
Input
5 42 14 23 33 4
Output
169720
58%
1027B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
4 51 14 44 33 22 4
1816134
5 42 14 23 33 4
169720