cf/mirror

Alternating Deck (hard version)

CF
1786A2800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
10
6
17
8
1000000
Output
3 2 2 3
1 0 2 3
6 4 3 4
2 1 2 3
250278 249924 249722 250076
1786A2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)