Defender of Childhood Dreams
1583F2500· grandmaster3s512 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
5 3
Output
21 2 2 2 2 2 2 1 1 1
Sample 2of 4
Input
5 2
Output
33 2 2 1 2 2 1 3 1 1
Sample 3of 4
Input
8 7
Output
22 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Sample 4of 4
Input
3 2
Output
21 2 2
58%
1583F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)