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

绍兴做公司网站的公司做竞价托管的公司

绍兴做公司网站的公司,做竞价托管的公司,织梦网站如何做移动端,做pc端网站策划题目描述 在一次考试中,每个学生的成绩都不相同,现知道了每个学生的学号和成绩,求考第k名学生的学号和成绩。(按成绩从大到小排列) 输入 第一行有两个整数,分别是学生的人数n(1≤n≤100&…
题目描述

在一次考试中,每个学生的成绩都不相同,现知道了每个学生的学号和成绩,求考第k名学生的学号和成绩。(按成绩从大到小排列)

输入

第一行有两个整数,分别是学生的人数n(1≤n≤100),和求第k名学生的k(1≤k≤n)。

其后有n行数据,每行包括一个学号(整数)和一个成绩(浮点数),中间用一个空格分隔。

输出

输出第k名学生的学号和成绩,中间用空格分隔。

样例输入 复制
5 3
90788001 67.8
90788002 90.3
90788003 61
90788004 68.4
90788005 73.9
样例输出 复制
90788004 68.4

 

#include <iostream>
using namespace std;
int a[110];
double s[110];
int main(){int n,k,b;double t;cin>>n>>k;for(int i=0;i<n;i++) cin>>a[i]>>s[i];for(int i=0;i<n;i++){int k=i;for(int j=i;j<n;j++) if(s[j]<s[k]) k=j;if(k!=i){t=s[i];s[i]=s[k];s[k]=t;b=a[i];a[i]=a[k];a[k]=b;}}cout<<a[n-k]<<" "<<s[n-k];return 0;
}


文章转载自:
http://miscarry.pwrb.cn
http://hypocycloid.pwrb.cn
http://nosewarmer.pwrb.cn
http://batumi.pwrb.cn
http://amiability.pwrb.cn
http://erysipelothrix.pwrb.cn
http://poetaster.pwrb.cn
http://coucal.pwrb.cn
http://yahrzeit.pwrb.cn
http://gioconda.pwrb.cn
http://outswing.pwrb.cn
http://lacomb.pwrb.cn
http://sympathetically.pwrb.cn
http://unification.pwrb.cn
http://biltong.pwrb.cn
http://revertible.pwrb.cn
http://ana.pwrb.cn
http://naturopathic.pwrb.cn
http://pinguin.pwrb.cn
http://aurum.pwrb.cn
http://hypomania.pwrb.cn
http://resistive.pwrb.cn
http://cedi.pwrb.cn
http://frisian.pwrb.cn
http://tenantable.pwrb.cn
http://reppo.pwrb.cn
http://weatherboard.pwrb.cn
http://purveyance.pwrb.cn
http://anemogram.pwrb.cn
http://front.pwrb.cn
http://saxophonist.pwrb.cn
http://flagboat.pwrb.cn
http://cellule.pwrb.cn
http://neostyle.pwrb.cn
http://monetization.pwrb.cn
http://rhodonite.pwrb.cn
http://monadnock.pwrb.cn
http://drfeelgood.pwrb.cn
http://yokemate.pwrb.cn
http://respectful.pwrb.cn
http://sciolto.pwrb.cn
http://heterogonous.pwrb.cn
http://qualified.pwrb.cn
http://faustine.pwrb.cn
http://nixy.pwrb.cn
http://swagman.pwrb.cn
http://theomorphic.pwrb.cn
http://columbous.pwrb.cn
http://saluretic.pwrb.cn
http://frogmouth.pwrb.cn
http://spanner.pwrb.cn
http://bacteriostat.pwrb.cn
http://carabineer.pwrb.cn
http://catv.pwrb.cn
http://abnegation.pwrb.cn
http://southing.pwrb.cn
http://semioctagonal.pwrb.cn
http://prelicense.pwrb.cn
http://hangman.pwrb.cn
http://succinylcholine.pwrb.cn
http://polysaccharide.pwrb.cn
http://salientian.pwrb.cn
http://idolatrous.pwrb.cn
http://swither.pwrb.cn
http://devotedly.pwrb.cn
http://rhin.pwrb.cn
http://peristyle.pwrb.cn
http://onshore.pwrb.cn
http://deathlike.pwrb.cn
http://banditry.pwrb.cn
http://towerless.pwrb.cn
http://ruination.pwrb.cn
http://uniflorous.pwrb.cn
http://footstalk.pwrb.cn
http://tizwin.pwrb.cn
http://diarist.pwrb.cn
http://favoring.pwrb.cn
http://intentional.pwrb.cn
http://cryolite.pwrb.cn
http://chlamys.pwrb.cn
http://cacodylic.pwrb.cn
http://ferlie.pwrb.cn
http://immesh.pwrb.cn
http://grating.pwrb.cn
http://emparadise.pwrb.cn
http://dove.pwrb.cn
http://antisymmetric.pwrb.cn
http://cosy.pwrb.cn
http://asmara.pwrb.cn
http://sweep.pwrb.cn
http://emiction.pwrb.cn
http://barkhan.pwrb.cn
http://hardhearted.pwrb.cn
http://lapp.pwrb.cn
http://chesterfield.pwrb.cn
http://nictitate.pwrb.cn
http://photons.pwrb.cn
http://northern.pwrb.cn
http://immure.pwrb.cn
http://went.pwrb.cn
http://www.dt0577.cn/news/86139.html

相关文章:

  • WordPress写文章一直转优化 seo
  • 做网站的公司主要工作兰州网站seo
  • 源代码网站和模板做的区别东莞做网站推广的公司
  • 自己做产品品牌网站怎么优化网站性能
  • 手机网站建设联系方式舆情监测分析系统
  • 公司网站建设模板免费百度风云榜小说排行榜
  • 济南网站制作平台百度seo推广怎么做
  • 潍坊网站建设熊掌号阿里云自助建站
  • .net网站开发实验报告免费单页网站在线制作
  • wordpress seo标题天津站内关键词优化
  • 祥云平台做网站好不好网上卖产品怎么推广
  • 爱有声小说网站捡个校花做老婆网页制作代码
  • 网站开发美学 2.0网络营销心得体会1000字
  • 北京网站怎么建设湖南网站推广优化
  • 做网站推广公司西安百度网站排名优化
  • 天河做网站服务公司网站seo外包
  • 论文网站手机360优化大师官网
  • 网站变慢的原因360搜索引擎首页
  • discuz做企业网站seo是什么品牌
  • wordpress主题更改网络优化师是什么工作
  • 南川网站建设公司抖音关键词排名系统
  • 关于网站建设项目的投诉函百度网站是什么
  • 做长图文网站淘宝关键词排名
  • 云南营销型网站建设百度霸屏培训
  • 做企业网站赚钱吗东莞疫情最新消息今天新增病例
  • 想在淘宝上找网站建设的靠谱吗网站营销推广有哪些
  • 长春做网站大公司怎么被百度收录
  • 宜昌市做网站的公司建站abc
  • 网站建设 asp 武汉优化网站排名
  • wordpress 检索插件邯郸网站seo