cf/mirror

Merging Two Decks

CF
234H2000· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3
1 0 1
4
1 1 1 1
Output
1 4 5 6 7 2 3
3
5 6 7
Sample 2of 2
Input
5
1 1 1 1 1
5
0 1 0 1 0
Output
6 1 2 3 4 5 7 8 9 10
4
1 7 8 9
234H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)