当前位置:网站首页>[detailed explanation of Huawei machine test] statistics of shooting competition results
[detailed explanation of Huawei machine test] statistics of shooting competition results
2022-07-06 05:21:00 【A less intelligent programmer】
【2022 Q1 Q2 | 100 branch 】
List of articles
Preface
《 Detailed explanation of Huawei's machine test questions 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 ).
Title Description
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 :
- A player can have multiple shooting scores , And the order is not fixed
- If a player scores less than 3 individual , It is considered that all the results of the contestant are invalid , The ranking ignores the player
- If the sum of the players' scores is equal , Then the players with the same sum of results will be in accordance with their ID Descending order
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 , Means the player participating in each shot ID(0<=ID<=99
边栏推荐
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- 毕业设计游戏商城
- 浅谈镜头滤镜的类型及作用
- Compilation and connection of shader in games202 webgl (learn from)
- 集合详解之 Map + 面试题
- Some common skills on unity inspector are generally used for editor extension or others
- Nacos TC setup of highly available Seata (02)
- What are the advantages of the industry private network over the public network? What specific requirements can be met?
- Postman pre script - global variables and environment variables
- Ad20 is set with through-hole direct connection copper sheet, and the bonding pad is cross connected
猜你喜欢

图数据库ONgDB Release v-1.0.3
![[leetcode] 18. Sum of four numbers](/img/06/c160b47d756290e5474e4c07e68648.png)
[leetcode] 18. Sum of four numbers
![[untitled]](/img/7e/d0724193f2f2c8681a68bda9e08289.jpg)
[untitled]

February 12 relativelayout

02. Develop data storage of blog project

SQLite add index

Class inheritance in yyds dry inventory C

毕业设计游戏商城

First acquaintance with CDN

The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
随机推荐
Pickle and savez_ Compressed compressed volume comparison
Mysql高级篇学习总结9:创建索引、删除索引、降序索引、隐藏索引
Oracle query table index, unique constraint, field
Vulhub vulnerability recurrence 67_ Supervisor
Vulhub vulnerability recurrence 68_ ThinkPHP
MySQL time processing
Questions d'examen écrit classiques du pointeur
集合详解之 Collection + 面试题
In 2022, we must enter the big factory as soon as possible
Idea one key guide package
Vite configures the development environment and production environment
Vulhub vulnerability recurrence 69_ Tiki Wiki
MySQL advanced learning summary 9: create index, delete index, descending index, and hide index
Configuration file converted from Excel to Lua
Hyperledger Fabric2. Some basic concepts of X (1)
Using stopwatch to count code time
Select knowledge points of structure
Nacos - TC Construction of High available seata (02)
[noip2008 improvement group] stupid monkey
Leetcode dynamic planning day 16