Maxim and Matrix
261C2000· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
1 1
Output
1
Sample 2of 4
Input
3 2
Output
1
Sample 3of 4
Input
3 3
Output
0
Sample 4of 4
Input
1000000000000 1048576
Output
118606527258
58%
261C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)