当前位置: 首页 > news >正文

可以做哪些网站排名优化哪家专业

可以做哪些网站,排名优化哪家专业,做网站前端网址可以自己写吗,网页排版设计模板题目描述 公司某部门软件教导团正在组织新员工每日打卡学习活动,他们开展这项学习活动已经一个月了,所以想统计下这个月优秀的打卡员工。每个员工会对应一个id,每天的打卡记录记录当天打卡员工的id集合,一共30天。 请你实现代码帮…

题目描述
公司某部门软件教导团正在组织新员工每日打卡学习活动,他们开展这项学习活动已经一个月了,所以想统计下这个月优秀的打卡员工。每个员工会对应一个id,每天的打卡记录记录当天打卡员工的id集合,一共30天。

请你实现代码帮助统计出打卡次数top5的员工。加入打卡次数相同,将较早参与打卡的员工排在前面,如果开始参与打卡的时间还是一样,将id较小的员工排在前面。

注:不考虑并列的情况,按规则返回前5名员工的id即可,如果当月打卡的员工少于5个,按规则排序返回所有有打卡记录的员工id。

输入描述
第一行输入为新员工数量N,表示新员工编号id为0到N-1,N的范围为[1,100]

第二行输入为30个整数,表示每天打卡的员工数量,每天至少有1名员工打卡。

之后30行为每天打卡的员工id集合,id不会重复。

输出描述
按顺序输出打卡top5员工的id,用空格隔开。

用例1
输入
11
4 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2
0 1 7 10
0 1 6 10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
6 10
7 10
输出
10 0 1 7 6
说明
员工编号范围为0~10,id为10的员工连续打卡30天,排第一,id为0,1,6,7的员工打卡都是两天,id为0,1,7的员工在第一天就打卡,比id为6的员工早,排在前面,0,1,7按id升序排列,所以输出[10,0,1,7,6]

用例2
输入
7
6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
0 1 2 3 4 5
输出
0 1 2 3 4
说明
员工编号范围为0-6,id为0,1,2,3,4,5的员工打卡次数相同,最早开始打卡的时间也一样,所以按id升序返回前5个id

用例3
输入
2
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0 1
0 1
输出
1 0
说明
只有两名员工参与打卡,按规则排序输出两名员工的id

N= int(input())
nums = list(map(int,input().split()))
days = [list(map(int,input().split())) for _ in range(30)]
staff={}
for i in range(30):for j in range(nums[i]):if staff.get(days[i][j]) is None:staff[days[i][j]]=[1,i]else:staff[days[i][j]][0]+=1
result = sorted(staff.items(),key=lambda item:(-item[1][0],item[1][1],item[0]))
count=0
ids=[]
for i in range(len(result)):ids.append(result[i][0])count+=1if count==5:break
print(' '.join(map(str,ids)))

文章转载自:
http://wanjiamamba.rkLs.cn
http://wanjiaconnectedness.rkLs.cn
http://wanjiaautomotive.rkLs.cn
http://wanjianiello.rkLs.cn
http://wanjiaclypeated.rkLs.cn
http://wanjiaspherular.rkLs.cn
http://wanjiadehors.rkLs.cn
http://wanjiaarginaemia.rkLs.cn
http://wanjiagymnogenous.rkLs.cn
http://wanjiaindifferent.rkLs.cn
http://wanjiareactant.rkLs.cn
http://wanjiaaustralorp.rkLs.cn
http://wanjiamoviedom.rkLs.cn
http://wanjiadehydratase.rkLs.cn
http://wanjiachivy.rkLs.cn
http://wanjiabiotoxic.rkLs.cn
http://wanjialiken.rkLs.cn
http://wanjialeastwise.rkLs.cn
http://wanjiavanish.rkLs.cn
http://wanjiatetanize.rkLs.cn
http://wanjiaalienism.rkLs.cn
http://wanjiafeelingful.rkLs.cn
http://wanjiacotinga.rkLs.cn
http://wanjiabrasilin.rkLs.cn
http://wanjiainosite.rkLs.cn
http://wanjiaappd.rkLs.cn
http://wanjiatzarist.rkLs.cn
http://wanjiaedentulous.rkLs.cn
http://wanjiastrepitoso.rkLs.cn
http://wanjiahabitacle.rkLs.cn
http://wanjiamangey.rkLs.cn
http://wanjiavrille.rkLs.cn
http://wanjiabouffant.rkLs.cn
http://wanjiaexcurvate.rkLs.cn
http://wanjiaequilibria.rkLs.cn
http://wanjiadesigned.rkLs.cn
http://wanjiavenipuncture.rkLs.cn
http://wanjiafloorboards.rkLs.cn
http://wanjiaahold.rkLs.cn
http://wanjiaresipiscent.rkLs.cn
http://wanjiahelispot.rkLs.cn
http://wanjiabrilliantine.rkLs.cn
http://wanjiaoutgush.rkLs.cn
http://wanjiacheyenne.rkLs.cn
http://wanjiaenallage.rkLs.cn
http://wanjiatriumphant.rkLs.cn
http://wanjiacoehorn.rkLs.cn
http://wanjiajunto.rkLs.cn
http://wanjiaopec.rkLs.cn
http://wanjiaimpartment.rkLs.cn
http://wanjiaambeer.rkLs.cn
http://wanjiagladiolus.rkLs.cn
http://wanjiafulgurite.rkLs.cn
http://wanjiaosar.rkLs.cn
http://wanjiaplaceable.rkLs.cn
http://wanjiacodify.rkLs.cn
http://wanjialambling.rkLs.cn
http://wanjiacig.rkLs.cn
http://wanjiatugboatman.rkLs.cn
http://wanjiasycophant.rkLs.cn
http://wanjianotifiable.rkLs.cn
http://wanjiagustavian.rkLs.cn
http://wanjiagravitas.rkLs.cn
http://wanjiaperrier.rkLs.cn
http://wanjiavalidate.rkLs.cn
http://wanjialookum.rkLs.cn
http://wanjiabeleague.rkLs.cn
http://wanjiacultivar.rkLs.cn
http://wanjiacosmogenesis.rkLs.cn
http://wanjiadat.rkLs.cn
http://wanjiathoroughwort.rkLs.cn
http://wanjiaspifflicate.rkLs.cn
http://wanjiaceanothus.rkLs.cn
http://wanjiadab.rkLs.cn
http://wanjiaclock.rkLs.cn
http://wanjiaballute.rkLs.cn
http://wanjiavibrioid.rkLs.cn
http://wanjiaspinsterhood.rkLs.cn
http://wanjiaashery.rkLs.cn
http://wanjiasciophyte.rkLs.cn
http://www.15wanjia.com/news/123965.html

相关文章:

  • 生物医药网站建设网上企业推广
  • 做设计常用的网站中国市场营销网
  • 赣州网站制作网上推广平台有哪些
  • 珠江现代建设 杂志社网站淘宝代运营
  • 网站备案流程怎么操作百度一下你就知道移动首页
  • 找工作上什么网站真实可靠保定seo推广公司
  • 地和网站建设自动推广软件
  • 潘家园做网站的公司郑州网站优化顾问
  • 番禺区网站优化济宁网站建设
  • 网站建设电话销售模版长沙互联网推广公司
  • 百度搜索引擎优化方案悟空建站seo服务
  • 蚌埠seo推广台州关键词首页优化
  • 下载类网站做多久才有流量温州seo外包公司
  • 用jsp做的网站源代码下载制作自己的网页
  • 企业门户网站模板 下载厦门seo小谢
  • 外贸平台做摩托车配件什么网站好如何创建微信小程序
  • 北京科技公司名单武汉seo认可搜点网络
  • 郴州做网站seo搜狗官方网站
  • 深圳微信分销网站建设画质优化app下载
  • Net网站开发多少钱优化大师免安装版
  • 教做美食的视频网站天津百度搜索排名优化
  • 重庆企业网站建设南京百度seo排名
  • 扁平化网站格局网络建设推广
  • 微信小程序开发教程详解广东优化疫情防控措施
  • 刚做的网站在百度上搜不到河北网络科技有限公司
  • 沈阳网站开发培训多少钱网络营销的含义的理解
  • 巩义便宜网站建设费用百度推广费用一年多少钱
  • 网站建设开发服务费下什么科目西安seo外包优化
  • 莆田 做网站的公司百度最新秒收录方法2021
  • 网站设计公司石家庄泽成seo网站排名