PROGRAMMING:Seeking the largest and second largest elements of T series
Enter n (where 1 < n < 100) and N integers (int type data range) to calculate the serial numbers of the largest and second largest elements (starting from 1). When n is 0, the test ends
###Input format:
Enter n (where 1 < n < 100) and N integers (int data range)
###Output format:
Output the sequence numbers of the largest and second largest elements (numbered from 1)
(if there is repetition, output the smallest serial number)
###Input example:
Here is a set of inputs. For example:
```in
5 1 2 3 4 5
3 12 4 5
6 2 4 6 -8 0 1
0
```
###Output example:
The corresponding output is given here. For example:
```out
5 4
1 3
3 2
```
answer:If there is no answer, please comment
###Input format:
Enter n (where 1 < n < 100) and N integers (int data range)
###Output format:
Output the sequence numbers of the largest and second largest elements (numbered from 1)
(if there is repetition, output the smallest serial number)
###Input example:
Here is a set of inputs. For example:
```in
5 1 2 3 4 5
3 12 4 5
6 2 4 6 -8 0 1
0
```
###Output example:
The corresponding output is given here. For example:
```out
5 4
1 3
3 2
```
answer:If there is no answer, please comment