cf/mirror

Matching Arrays

CF
1896C1400· specialist2s256 MB⌨ stdin/stdout

Examples

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