Playing with Paper
527A1100· newbie2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
2 1
Output
2
Sample 2of 3
Input
10 7
Output
6
Sample 3of 3
Input
1000000000000 1
Output
1000000000000
58%
527A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
2 1
2
10 7
6
1000000000000 1
1000000000000