当前位置:网站首页>【华为机试真题详解】统计射击比赛成绩
【华为机试真题详解】统计射击比赛成绩
2022-07-06 05:19:00 【不太灵光的程序员】
【2022 Q1 Q2 | 100分】
前言
《华为机试真题详解 Python实现》专栏含牛客网华为专栏、华为面经试题、华为OD机试真题。
如果您在准备华为的面试,期间有想了解的可以私信我,我会尽可能帮您解答,也可以给您一些建议!
本文解法非最优解(即非性能最优)。
题目描述
给定一个射击比赛成绩单,包含多个选手若干射击的成绩分数,请对每个选手按其最高3个分数之和
进行降序排名,输出降序排名后的选手ID序列,条件如下:
- 一个选手可以有多个射击成绩的分数,且次序不固定
- 如果一个选手成绩少于3个, 则认为选手的所有成绩无效,排名忽略该选手
- 如果选手的成绩之和相等,则成绩之和相等的选手按照其ID降序排列
输入描述:
第一行,一个整数N, 表示该场比赛总共进行了N次射击,产生N个成绩分数(2<=N<=100)
第二行,一个长度为N的整数序列,表示参与每次射击的选手ID(0<=ID<=99
边栏推荐
- Yolov5 tensorrt acceleration
- Fiddler installed the certificate, or prompted that the certificate is invalid
- 2021 robocom world robot developer competition - undergraduate group (semi-finals)
- Principle and performance analysis of lepton lossless compression
- C进阶-数据的存储(上)
- GAMES202-WebGL中shader的编译和连接(了解向)
- Configuration file converted from Excel to Lua
- Postman Association
- Acwing week 58
- RT thread analysis - object container implementation and function
猜你喜欢

C进阶-数据的存储(上)

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

GAMES202-WebGL中shader的編譯和連接(了解向)

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

Notes, continuation, escape and other symbols

Compilation et connexion de shader dans games202 - webgl (comprendre la direction)

趋势前沿 | 达摩院语音 AI 最新技术大全

Vulhub vulnerability recurrence 67_ Supervisor

Codeforces Round #804 (Div. 2) Editorial(A-B)
![[leetcode] 18. Sum of four numbers](/img/06/c160b47d756290e5474e4c07e68648.png)
[leetcode] 18. Sum of four numbers
随机推荐
Principle and performance analysis of lepton lossless compression
2022 half year summary
Fuzzy -- basic application method of AFL
Graduation design game mall
【torch】|torch. nn. utils. clip_ grad_ norm_
Tetris
Compilation and connection of shader in games202 webgl (learn from)
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
组播和广播的知识点梳理
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
04. 项目博客之日志
Cve-2019-11043 (PHP Remote Code Execution Vulnerability)
Driver development - hellowdm driver
Application of Flody
jdbc使用call调用存储过程报错
EditorUtility.SetDirty在Untiy中的作用以及应用
Qt TCP 分包粘包的解决方法
Acwing week 58
Codeforces Round #804 (Div. 2) Editorial(A-B)
2021 robocom world robot developer competition - undergraduate group (semi-finals)