当前位置:网站首页>【华为机试真题详解】统计射击比赛成绩
【华为机试真题详解】统计射击比赛成绩
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
边栏推荐
- Compilation and connection of shader in games202 webgl (learn from)
- MySQL time processing
- Leetcode dynamic planning day 16
- Sorting out the knowledge points of multicast and broadcasting
- 组播和广播的知识点梳理
- Ad20 is set with through-hole direct connection copper sheet, and the bonding pad is cross connected
- Extension of graph theory
- First acquaintance with CDN
- Driver development - hellowdm driver
- ByteDance program yuan teaches you how to brush algorithm questions: I'm not afraid of the interviewer tearing the code
猜你喜欢
Configuration file converted from Excel to Lua
Lepton 无损压缩原理及性能分析
Rce code and Command Execution Vulnerability
Postman Association
指針經典筆試題
In 2022, we must enter the big factory as soon as possible
Please wait while Jenkins is getting ready to work
Fluent implements a loadingbutton with loading animation
初识CDN
Imperial cms7.5 imitation "D9 download station" software application download website source code
随机推荐
Solution of QT TCP packet sticking
Zoom and pan image in Photoshop 2022
CUDA11.1在线安装
Notes, continuation, escape and other symbols
Application of Flody
Postman manage test cases
集合详解之 Map + 面试题
MySQL if and ifnull use
Driver development - hellowdm driver
Postman Association
Modbus协议通信异常
Steady, 35K, byte business data analysis post
Acwing week 58
C# AES对字符串进行加密
Sorting out the knowledge points of multicast and broadcasting
EditorUtility. The role and application of setdirty in untiy
Summary of three log knowledge points of MySQL
Three.js学习-光照和阴影(了解向)
Set detailed map + interview questions
Modbus protocol communication exception