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

PROGRAMMING:Who is the champion

Luz5年前 (2021-05-10)题库545
Xiao Bo has been interested in programming since he joined Kunlun virtual interest group. He found that computer programming can not only train thinking, but also solve some practical problems in study and life. For example, in the world cup, Xiao Bo often lists some of the teams to form a small team, and then calculates the points according to the rules, and looks at who is the champion in the team according to the level of the points. If the rules of points in a football match are as follows: 3 points for each winning game, 1 point for each drawing game, 1 point for each losing game, and the champion is the one with the highest points. Bo would like to make such a program, input a number of team results, you can automatically find out who is the champion in this team. Can you make one, too?
###Input format:
There are n + 1 lines. The first line is the number of teams entered n, and the second line ~ n + 1 are the competition results of each team, which are team number, winning number, draw number, and losing number (all integers less than 1000). Each data is separated by a space. Input data to ensure that the points are different.
###Output format:
The result output to the file, there is only one number, is the champion team number.
###Input example:
```in
four
1 5 4 3
2 3 4 5
3 6 3 3
4 4 2 6
```
###Output example:
```out
three
```






answer:If there is no answer, please comment