Problem4048--找朋友

4048: 找朋友

Time Limit: 1.000 Sec  Memory Limit: 128 MB
Submit: 17  Solved: 3
[Submit] [Status] [Web Board] [Creator:]

Description


Sample Input

4 2 1
1 2 3 4
1 3
3 4

Sample Output

Yes
No

HINT


Source/Category

 

[Submit] [Status]