Problem2153--Find position

2153: Find position

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

Description

Input n integers that are all unequal, save them in an array, and use a pointer to find the position of the smallest element and the next smallest element in the n numbers.

Input

Given n numbers

Output

Output position of smallest and next smallest number

Sample Input Copy

5 9 2 4 7 10 6 3

Sample Output Copy

2 7

Source/Category

193