Problem2013--noip2017 图书管理员

2013: noip2017 图书管理员

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 3  Solved: 2
[Status] [Submit] [Creator:]

Description

Sample Input Copy

5 5 
2123 
1123 
23 
24 
24 
2 23 
3 123 
3 124 
2 12 
2 12

Sample Output Copy

23 
1123 
-1 
-1 
-1 

HINT

Source/Category