How Does the Rook Move?
1957C1600· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
34 11 28 17 61000 44 4952 343222 33390 91
Output
3331671968183
58%
1957C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
34 11 28 17 61000 44 4952 343222 33390 91
3331671968183