《 Huawei machine test real problem Python Realization 》 The column includes Huawei column of niuke.com 、 Huawei test questions 、 Huawei OD Real problem of machine test .
If you are preparing for Huawei's interview , If you want to know something, you can send me a private letter , I will try my best to help you , I can also give you some suggestions !
This paper solves the non optimal solution ( Non optimal performance ).
For detailed analysis, see 《【 Detailed explanation of Huawei's machine test questions 】 Count the results of shooting competitions 》
Given a shooting competition report card , Contains scores of several shots of multiple players , Please press the highest for each player 3 Sum of scores
Rank in descending order , Output the players ranked in descending order ID Sequence , The conditions are as follows :
Input description :
first line , An integer N, It means that the game has been played for a total of N Shots , produce N Scores (2<=N<=100)
The second line , A length of N Integer sequence of ÿ