Problem3569--【Div3】abc448P3-Except and Min

3569: 【Div3】abc448P3-Except and Min

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

Description




Sample Input Copy

6 6
3 2 5 9 1 2
2
4 5
5
1 2 3 4 6
3
2 5 6
4
1 2 5 6
1
5
3
1 2 3

Sample Output Copy

2
1
3
5
2
1

Source/Category