11638: a1001
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:3
Solved:0
Description
已知一个长度为10且已经按照从小到大排序的整形数组,要求对于输入的每一个整数,判断该数在数组中的位置并且输出。如果数组中不存在这个数,输出error.
Input
输入10个数,顺序从小到大,输入一个n ,n代表随后要查找n次,随后输入n个要查找的数。
Output
输出查找的结果。
Sample Input Copy
1 2 3 4 5 6 7 8 9 10
5
1
4
7
8
11
Sample Output Copy
1
4
7
8
error