cf/mirror

Ones and Twos

CF
1896D1700· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
2
5 5
2 1 2 1 2
1 5
1 6
1 7
2 4 2
1 7
3 2
2 2 2
1 6
1 5
Output
YES
YES
NO
YES
YES
NO
1896D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)