Problem 1077 --搜索-吃货

1077: 搜索-吃货

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 6  Solved: 4
[Submit][Status][Web Board][Creator:]

Description

Sample Input

4
100 200 300 400
3
50 50 50 50
200 300 200 300
900 150 389 399

Sample Output

2 1 3

Source

[Submit][Status]