cf/mirror

Two 0-1 Sequences

CF
1704A800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
10
6 2
001001
11
6 2
110111
01
6 2
000001
11
6 2
111111
01
8 5
10000101
11010
7 4
1010001
1001
8 6
01010010
010010
8 4
01010101
1001
8 4
10101010
0110
7 5
1011100
11100
Output
YES
YES
NO
NO
NO
YES
YES
NO
NO
YES
1704A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)