-->
当前位置:首页 > 题库

PROGRAMMING:Sports meeting 3

Luz5年前 (2021-05-10)题库410
###Task description
```
Yu Long and many female students in the Games rope skipping competition, now need a ranking program, first input each student's score, and then output each student's score and ranking.
```
###Input format:
```
A number of spaces separated by integers, representing the results of each person. The minimum number of people is one, and the maximum number is not more than 1000.
```
###Output format:
```
Output rank and score by line, separated by a horizontal line, a space before and after the horizontal line, the horizontal line is the minus sign.
```
###Input example:
```in
150 120 180 135 100
```
###Output example:
```out
1 - 180
2 - 150
3 - 135
4 - 120
5 - 100
```
###Input example:
```in
150 120 150 135 120
```
###Output example:
```out
1 - 150
1 - 150
3 - 135
4 - 120
4 - 120
```






answer:If there is no answer, please comment