1167: K 大数查询

Memory Limit:512 MB Time Limit:2.000 S
Judge Style:Text Compare Creator:
Submit:1 Solved:1

Description

Sample Input Copy

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

Sample Output Copy

1
2
1

Source/Category