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

PROGRAMMING:Rope skipping competition in sports meet

Luz5年前 (2021-05-10)题库562
###Task description
```
Yu Long and four students in the Games rope skipping competition, need a ranking program, first input each student's score (rope skipping count), and then output each student's score and ranking (ranking from high to low).
```
###Input format:
```
An integer separated by five spaces, representing the results of five people.
```
###Output format:
```
According to the line output ranking and results, 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
180 120 120 180 120
```
###Output example:
```out
1 - 180
1 - 180
3 - 120
3 - 120
3 - 120
```






answer:If there is no answer, please comment