当前位置:网站首页>[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
边栏推荐
- 驱动开发——第一个HelloDDK
- Using stopwatch to count code time
- UCF(2022暑期团队赛一)
- 05. 博客项目之安全
- 集合详解之 Map + 面试题
- Set detailed map + interview questions
- [classic example] binary tree recursive structure classic topic collection @ binary tree
- Fuzzy -- basic application method of AFL
- 指針經典筆試題
- UCF (2022 summer team competition I)
猜你喜欢
F12 solve the problem that web pages cannot be copied
04. 项目博客之日志
idea一键导包
[mask requirements of OSPF and Isis in multi access network]
图数据库ONgDB Release v-1.0.3
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
注释、接续、转义等符号
Nacos TC setup of highly available Seata (02)
Microblogging hot search stock selection strategy
JS quick start (II)
随机推荐
Sorting out the knowledge points of multicast and broadcasting
Some common skills on unity inspector are generally used for editor extension or others
Class inheritance in yyds dry inventory C
EditorUtility. The role and application of setdirty in untiy
Ad20 is set with through-hole direct connection copper sheet, and the bonding pad is cross connected
JS quick start (II)
Implementing fuzzy query with dataframe
GAMES202-WebGL中shader的編譯和連接(了解向)
Figure database ongdb release v-1.0.3
What are the advantages of the industry private network over the public network? What specific requirements can be met?
Graduation design game mall
Cuda11.1 online installation
Imperial cms7.5 imitation "D9 download station" software application download website source code
Pointer classic written test questions
Collection + interview questions
Can the feelings of Xi'an version of "Coca Cola" and Bingfeng beverage rush for IPO continue?
Safe mode on Windows
自建DNS服务器,客户端打开网页慢,解决办法
GAMES202-WebGL中shader的编译和连接(了解向)
Review of double pointer problems