Unshuffling a Deck
1427D2000· candidate master1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
43 1 2 4
Output
23 1 2 12 1 3
Sample 2of 3
Input
66 5 4 3 2 1
Output
16 1 1 1 1 1 1
Sample 3of 3
Input
11
Output
0
58%
1427D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)