Submarine in the Rybinsk Sea (hard edition)
1195D21800· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
312 3 45
Output
12330
Sample 2of 2
Input
2123 456
Output
1115598
58%
1195D2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
312 3 45
12330
2123 456
1115598