Problem3329--【Div2】鸽笼查询

3329: 【Div2】鸽笼查询

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

Description




Sample Input Copy

4 7
2
1 1 2
2
1 3 2
2
1 3 4
2

Sample Output Copy

0
1
1
2

Source/Category