cf/mirror

Find B

CF
1923C1400· specialist3s256 MB⌨ stdin/stdout

Examples

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