cf/mirror

Like the Bitset

CF
2136B900· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
6
2 1
00
4 3
0010
5 2
11011
7 5
1111110
8 4
00101011
10 2
1000000010
Output
YES
1 2
YES
1 4 3 2
NO
NO
YES
6 5 2 3 4 8 1 7
YES
1 2 3 4 5 6 7 9 8 10
2136B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)