Problem K: GESP 三 202409-编程1

Problem K: GESP 三 202409-编程1

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

Sample Input Copy

3
3
1 2 3
4
2 3 1 4
5
1 2 3 4 5

Sample Output Copy

Yes
Yes
No