Submit solution
Points:
0.10
Time limit:
1.0s
Memory limit:
512M
Input:
stdin
Output:
stdout
Author:
Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch
In case the statement didn't load correctly, you can download the statement here: Statement
Sample Input 1
5
3 2
0 -1 2
5 4
4 -1 6 0 -1
7 8
2 5 6 8 9 10 11
7 9
2 5 6 8 9 10 11
5 8
4 4 4 -1 -1
Sample Output 1
YES
0 4 2
YES
4 8 6 0 2
YES
2 5 6 8 9 10 11
NO
NO
Comments