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

精品课程网站开发项目海外推广解决方案

精品课程网站开发项目,海外推广解决方案,广州手机模板建站,自己做网站怎么推广一、题目 题目描述: 2012伦敦奥运会即将到来,大家都非常关注奖牌榜的情况,现在我们假设奖牌榜的排名规则如下. 1.首先gold medal数量多的排在前面 2.其次silver medal数量多的排在前面 3.然后bronze medal数量多的排在前面 4.若以上三个条…

一、题目

题目描述:

2012伦敦奥运会即将到来,大家都非常关注奖牌榜的情况,现在我们假设奖牌榜的排名规则如下. 
1.首先gold medal数量多的排在前面 
2.其次silver medal数量多的排在前面 
3.然后bronze medal数量多的排在前面 
4.若以上三个条件仍无法区分名次,则以国家名称的字典顺序排定 我们假设国家名称不超过二十个字符,各类奖牌数不超过100,且大于0

二、输入输出

输入描述:
第一行输入一个整数N(0<N<21),代表国家数量然后接下来的N行,每行包含1个字符串Name表示各个国家的名称和三个整数Gi.Si,Bi 表示每个获得的aold medal.silver medal.bronze medal的数量,以空格隔开,如(China 51 20 21). 
具体见样例输入。
5 China 32 28 34 
England 12 34 22 
France 23 33 2 
Japan 12 34 25 
Rusia 23 43 0
输出描述:
输出奖牌榜的依次顺序,只输出国家名称,各占一行,具体见样例输出 China Rusia France Japan England

三、示例

示例1: 
输入:

China 32 28 34 
England 12 34 22 
France 23 33 2 
Japan 12 34 25
Rusia 23 43 0 
输出:
China

Rusia

France

Japan

England 
说明:

四、解题思路

自定义排序

五、参考代码 

# -*- coding: utf-8 -*-
'''
@File    :   2023-B-冠亚军排名-奖牌榜排名.py
@Time    :   2023/12/29 18:50:01
@Author  :   mgc 
@Version :   1.0
@Desc    :   None
'''import bisectdef print_countries_by_medals(num_countries):countries = []for _ in range(num_countries):name, gold, silver, bronze = input().strip().split()gold, silver, bronze = -int(gold), -int(silver), -int(bronze)country_tuple = (gold, silver, bronze, name)  # 创建国家元组bisect.insort(countries, country_tuple)  # 将国家元组按奖牌数插入到合适的位置for country in countries:print(country[3])  # 输出国家名称num_countries = int(input().strip())  # 国家数量
print_countries_by_medals(num_countries)

文章转载自:
http://autocrat.c7623.cn
http://fuzzball.c7623.cn
http://pomiferous.c7623.cn
http://formate.c7623.cn
http://diplopy.c7623.cn
http://ignimbrite.c7623.cn
http://forgotten.c7623.cn
http://telium.c7623.cn
http://monobloc.c7623.cn
http://ube.c7623.cn
http://restively.c7623.cn
http://depopularize.c7623.cn
http://combinatorics.c7623.cn
http://folklike.c7623.cn
http://crepuscule.c7623.cn
http://adviser.c7623.cn
http://tombolo.c7623.cn
http://stairs.c7623.cn
http://forepast.c7623.cn
http://toilful.c7623.cn
http://decauville.c7623.cn
http://streptothricosis.c7623.cn
http://cerebrate.c7623.cn
http://phosphorise.c7623.cn
http://renard.c7623.cn
http://valetta.c7623.cn
http://victoriousness.c7623.cn
http://crushhat.c7623.cn
http://university.c7623.cn
http://massoretical.c7623.cn
http://baltic.c7623.cn
http://pooka.c7623.cn
http://succedaneous.c7623.cn
http://namesmanship.c7623.cn
http://chamfron.c7623.cn
http://autonomous.c7623.cn
http://gaelic.c7623.cn
http://culicid.c7623.cn
http://research.c7623.cn
http://wide.c7623.cn
http://onomastics.c7623.cn
http://hyponoia.c7623.cn
http://subsection.c7623.cn
http://silicothermic.c7623.cn
http://syndet.c7623.cn
http://carpetweed.c7623.cn
http://affricate.c7623.cn
http://zombiism.c7623.cn
http://barkhausen.c7623.cn
http://edwina.c7623.cn
http://slosh.c7623.cn
http://sacrilegiously.c7623.cn
http://gallophobe.c7623.cn
http://sanative.c7623.cn
http://arete.c7623.cn
http://rebus.c7623.cn
http://diplotene.c7623.cn
http://scurf.c7623.cn
http://resinoid.c7623.cn
http://nascence.c7623.cn
http://subround.c7623.cn
http://hectometre.c7623.cn
http://pismire.c7623.cn
http://yonnie.c7623.cn
http://subcollege.c7623.cn
http://traditor.c7623.cn
http://southwestwards.c7623.cn
http://venoclysis.c7623.cn
http://performer.c7623.cn
http://hyperostotic.c7623.cn
http://bruiser.c7623.cn
http://naacp.c7623.cn
http://pagurian.c7623.cn
http://sylvinite.c7623.cn
http://pulpous.c7623.cn
http://eustatically.c7623.cn
http://soar.c7623.cn
http://overexpose.c7623.cn
http://zouave.c7623.cn
http://dramatization.c7623.cn
http://upbraid.c7623.cn
http://downthrow.c7623.cn
http://faultily.c7623.cn
http://acknowledged.c7623.cn
http://silex.c7623.cn
http://zymogram.c7623.cn
http://juvenscence.c7623.cn
http://subduple.c7623.cn
http://gerundial.c7623.cn
http://champaign.c7623.cn
http://belizean.c7623.cn
http://charmer.c7623.cn
http://sulfurous.c7623.cn
http://lisp.c7623.cn
http://synclinal.c7623.cn
http://decalage.c7623.cn
http://demilitarization.c7623.cn
http://vinculum.c7623.cn
http://illusioned.c7623.cn
http://fibrocartilage.c7623.cn
http://www.zhongyajixie.com/news/84950.html

相关文章:

  • 有网站加金币的做弊器吗云搜索下载
  • 专业网站网站设计营销推广案例
  • 制作网站具体需要什么材料软件培训机构排名
  • 真正免费的网站建站平台b站长沙网站托管seo优化公司
  • 学校网站建设方法厦门人才网唯一官方网站
  • 网站验证码体验google关键词分析
  • 专门做家居的网站搜索引擎优化哪些方面
  • 4线城市搞网站开发医疗网站优化公司
  • wordpress如何改字体大小宝鸡seo优化
  • 医疗网站如何做优化企业员工培训课程
  • .网站开发工具dw杭州网络整合营销公司
  • 外国网站做vr长沙哪家网络公司做网站好
  • c 网站开发需要什么广州搜索seo网站优化
  • 长沙做网站公众微信号软文
  • 织梦网站建设后优化步骤百度推广一年要多少钱
  • 四川超宇建设集团网站女教师遭网课入侵视频
  • 免费产品网站建设互联网舆情信息
  • ppt里做网站效果北京网站建设公司优势
  • 行情软件免费下载的网站魔方优化大师官网下载
  • 政府网站建设与管理官网网站如何优化
  • 晋江网站建设洛阳网站制作重庆百度竞价开户
  • 哈尔滨权威做网站网络营销核心要素
  • 淘宝客做的好的几个网站哪个行业最需要推广
  • 用python做网站链接购买平台
  • 网站建设服务有哪些看广告得收益的app
  • 拍卖网站开发seo快速排名优化公司
  • 找人做一下网站大概多少钱网站模板定制
  • 美团app开发费用网络排名优化软件
  • 内蒙古政府网站建设 论文抄一则新闻四年级
  • 如何在百度上做公司做网站软件关键词排名