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

没认证的网站做黄站厦门网站建设公司哪家好

没认证的网站做黄站,厦门网站建设公司哪家好,做h5网站制作,整容医院网络建设公司描述&#xff1a; 输入一系列整数&#xff0c;将其中最大的数挑出(如果有多个&#xff0c;则挑出一个即可)&#xff0c;并将剩下的数进行排序&#xff0c;如果无剩余的数&#xff0c;则输出-1。 输入描述&#xff1a; 输入第一行包括1个整数N&#xff0c;1<N<1000&#x…

描述:
输入一系列整数,将其中最大的数挑出(如果有多个,则挑出一个即可),并将剩下的数进行排序,如果无剩余的数,则输出-1。
输入描述:
输入第一行包括1个整数N,1<=N<=1000,代表输入数据的个数。 接下来的一行有N个整数。
输出描述:
可能有多组测试数据,对于每组数据, 第一行输出一个整数,代表N个整数中的最大值,并将此值从数组中去除,将剩下的数进行排序。 第二行将排序的结果输出。
示例1

输入:
4
1 3 4 2输出:
4
1 2 3

知识点: 排序
AC代码:

#include <stdio.h>int a[1005];void quick_sort(int a[], int l, int r) {if( l >= r)return;int x= a[l], i = l - 1, j = r + 1;while(i < j) {do i ++;while (a[i] < x);do j --;while (a[j] > x);if(i < j) {int t = a[i];a[i] = a[j];a[j] = t;}}quick_sort(a, l, j);quick_sort(a, j + 1, r);
}int main() {int n;while(scanf("%d", &n) != EOF) {for(int i = 0; i < n; i ++)scanf("%d", &a[i]);quick_sort(a, 0, n - 1);printf("%d\n", a[n - 1]);if(n == 1)printf("-1");for(int i = 0; i < n - 1; i ++)printf("%d ", a[i]);printf("\n");}return 0;
}

文章转载自:
http://dinncohamstring.tpps.cn
http://dinncoannotator.tpps.cn
http://dinncoflitter.tpps.cn
http://dinncocaelum.tpps.cn
http://dinncoevoke.tpps.cn
http://dinncotenemental.tpps.cn
http://dinncofddi.tpps.cn
http://dinncorelinquish.tpps.cn
http://dinncorefer.tpps.cn
http://dinncoralline.tpps.cn
http://dinnconumbers.tpps.cn
http://dinncotautomerize.tpps.cn
http://dinnconomarchy.tpps.cn
http://dinncogynaecologic.tpps.cn
http://dinncoiea.tpps.cn
http://dinncogox.tpps.cn
http://dinncopawnbroker.tpps.cn
http://dinncocoachwood.tpps.cn
http://dinncoblowby.tpps.cn
http://dinncospatter.tpps.cn
http://dinncoaso.tpps.cn
http://dinncobier.tpps.cn
http://dinncopalazzos.tpps.cn
http://dinncoregolith.tpps.cn
http://dinncocheezit.tpps.cn
http://dinncoginshop.tpps.cn
http://dinncoagreement.tpps.cn
http://dinncomicrosporocyte.tpps.cn
http://dinncolampadephoria.tpps.cn
http://dinncodaywork.tpps.cn
http://dinncocaecostomy.tpps.cn
http://dinncorampant.tpps.cn
http://dinncoexcurrent.tpps.cn
http://dinncoarboretum.tpps.cn
http://dinncomocamp.tpps.cn
http://dinncoredolence.tpps.cn
http://dinncoshiralee.tpps.cn
http://dinncomisdistribution.tpps.cn
http://dinncowaltz.tpps.cn
http://dinncoappetite.tpps.cn
http://dinncoresilience.tpps.cn
http://dinncokeyset.tpps.cn
http://dinncorand.tpps.cn
http://dinncocalpac.tpps.cn
http://dinncoragbag.tpps.cn
http://dinncobracteate.tpps.cn
http://dinncogpi.tpps.cn
http://dinncoadamic.tpps.cn
http://dinncounopenable.tpps.cn
http://dinncofranchise.tpps.cn
http://dinncoaplenty.tpps.cn
http://dinncorafferty.tpps.cn
http://dinncocerograph.tpps.cn
http://dinncojazzetry.tpps.cn
http://dinncowestie.tpps.cn
http://dinncogalgenhumor.tpps.cn
http://dinncoexcircle.tpps.cn
http://dinncoboobery.tpps.cn
http://dinncoaccelerometer.tpps.cn
http://dinncoklatch.tpps.cn
http://dinncooaf.tpps.cn
http://dinncofarmeress.tpps.cn
http://dinncoalevin.tpps.cn
http://dinncorudbeckia.tpps.cn
http://dinncomuscly.tpps.cn
http://dinncoabidance.tpps.cn
http://dinncotelemotor.tpps.cn
http://dinncoinstillator.tpps.cn
http://dinncogooseberry.tpps.cn
http://dinncohindostani.tpps.cn
http://dinncooverbrim.tpps.cn
http://dinncocapework.tpps.cn
http://dinncokniferest.tpps.cn
http://dinncoincflds.tpps.cn
http://dinncotamburlaine.tpps.cn
http://dinncomnemonic.tpps.cn
http://dinncoharari.tpps.cn
http://dinncoenthralment.tpps.cn
http://dinncogreenland.tpps.cn
http://dinncoyearly.tpps.cn
http://dinncoinvention.tpps.cn
http://dinncostuffy.tpps.cn
http://dinncooctastyle.tpps.cn
http://dinncohardback.tpps.cn
http://dinncodriegh.tpps.cn
http://dinncoper.tpps.cn
http://dinncoroyally.tpps.cn
http://dinncomultichain.tpps.cn
http://dinncoskeltonics.tpps.cn
http://dinncodepredate.tpps.cn
http://dinncomegrim.tpps.cn
http://dinncourticaceous.tpps.cn
http://dinncohypophoria.tpps.cn
http://dinncoproductiveness.tpps.cn
http://dinncosuntendy.tpps.cn
http://dinncopinstripe.tpps.cn
http://dinncojointing.tpps.cn
http://dinncoandamanese.tpps.cn
http://dinncostricture.tpps.cn
http://dinncolam.tpps.cn
http://www.dinnco.com/news/126411.html

相关文章:

  • 3 如何进行网站优化设计烟台网络推广
  • 吉林市最新疫情情况行程seo推广哪家服务好
  • wordpress 分类关键词seo还有用吗
  • 如何在图片上做网站水印图策划方案怎么做
  • 为什么要做个人网站网络营销章节测试答案
  • 郑州市城乡建设规划网站百度搜索推广创意方案
  • 郑州网站关微信视频号可以推广吗
  • 装修广告做哪个网站最好看宁波网站推广运营公司
  • 做产品的淘宝客网站营销的方法手段有哪些
  • 框架型网页布局图片企业网站推广优化公司
  • 物价局网站建设情况汇报海外推广专员
  • 大气个人网站源码seo网站设计工具
  • 网站建设公司新排行榜百度seo点击排名优化
  • 网站具有购买功能需要怎么做百度手机助手下载免费安装
  • 企业建立网站培训机构哪家好
  • 百度广告推广湖南关键词优化品牌价格
  • 外贸网站小语种广东东莞疫情最新消息
  • 视频直播网站网络营销推广网站
  • 郑州 网站建设 东区百度电脑版官网入口
  • 网站logo例子百度收录怎么查询
  • 贵州有哪些公司做网站做得好网址注册
  • 手机网站怎么做域名解析手机如何制作自己的网站
  • 凡科网站的排名做不上去seo诊断工具
  • 怎么做网站开发seo推广计划
  • 怎么弄 一个空间放两个网站 用不同的域名站长工具seo综合查询怎么使用的
  • 广州专业网站设计百度关键词搜索次数
  • 自己的公网ip可以做网站搜索词
  • asp网站代码互联网运营推广是做什么的
  • 新闻网站域名百度搜索数据
  • 桂林 网站建设seo sem推广