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

租用空间做网站seo百家论坛

租用空间做网站,seo百家论坛,铜川做网站,查询网站死链接输入任意字串&#xff0c;将串中除了首尾字符的其他字符升序排列显示&#xff0c;串中字符个数最多20个。 题干 输入任意字串&#xff0c;将串中除了首尾字符的其他字符升序排列显示&#xff0c;串中字符个数最多20个。输入样例gfedcba输出样例gbcdefa 选择排序 #include<s…

输入任意字串,将串中除了首尾字符的其他字符升序排列显示,串中字符个数最多20个。

题干

输入任意字串,将串中除了首尾字符的其他字符升序排列显示,串中字符个数最多20个。
输入样例gfedcba
输出样例gbcdefa

选择排序

#include<stdio.h>
int main() {char a[20],t;int i = 0, len = 0,j,minxb;//gets(a);scanf("%s",a);while (a[len])len++;for (i = 1; i < len - 2; i++) {minxb = i;for (j = i + 1; j < len - 1; j++) {if (a[j] < a[minxb])minxb = j;}if (minxb != i) {t=a[i], a[i] = a[minxb],a[minxb]=t;}}printf("%s", a);return 0;
}

冒泡排序

插入排序

 

输入三个字符串,求最大串输出,串中字符个数最多20个。

题干输入三个字符串,求最大串输出,串中字符个数最多20个。
输入样例bbb
ccc
aaa
输出样例ccc

 

#include<stdio.h>
#include<string.h>
int main() {char a[30], b[30], c[30], max[30];scanf("%s%*c%s%*c%s", a, b, c);strcpy(max, a);if (strcmp(b , max)>0) {strcpy(max, b);}if (strcmp(c , max)>0) {strcpy(max, c);}puts(max);return 0;
}

 输入三个字符串,从小到大的顺序输出,串中字符个数最多20个。

题干输入三个字符串,从小到大的顺序输出,串中字符个数最多20个。
输入样例ccc  aaa  bbb
输出样例aaa  bbb  ccc
#include<stdio.h>
#include<string.h>
int main() {char a[30], b[30], c[30],t[30];scanf("%s%*c%s%*c%s", a, b, c);if (strcmp(a, b)>0) {strcpy(t, a), strcpy(a, b), strcpy(b, t);}if (strcmp(a, c)>0) {strcpy(t, a), strcpy(a, c), strcpy(c, t);}if (strcmp(b, c)>0) {strcpy(t, b), strcpy(b, c), strcpy(c, t);}printf("%s %s %s", a, b, c);return 0;
}

 

 输入任意个字串,判断是否为回文串,是显示yes,否则显示no,输入用end结束,串中字符个数最多20个。

题干输入任意个字串,判断是否为回文串,是显示yes,否则显示no,输入用end结束,串中字符个数最多20个。
输入样例ikjki  abb  abba  end
输出样例yes
no
yes

#include<stdio.h>
#include<string.h>
int main() {char a[20];int i=0, j;while(scanf("%s",a),strcmp(a,"end")){while (a[i] != '\0') i++;i--;j = 0;while (j < i) {if (a[i] == a[j]) {i--, j++;}else {break;}}if (j >= i) {printf("yes\n");}elseprintf("no\n");}return 0;
}

 从键盘输入N对字符串,比较各对串大小,若两串相等显示0,若两串不等显示第一次不等字符ascii码差值。字串最多20个字符,若某串提前结束计算字符和\0的差值。

 

题干从键盘输入N对字符串,比较各对串大小,若两串相等显示0,若两串不等显示第一次不等字符ascii码差值。字串最多20个字符,若某串提前结束计算字符和\0的差值。
输入样例5
asd  asd
ASDF  ASDH
ASDHG  ASDGH
ASD  ASDA
ASDA  ASD
输出样例0
-2
1
-65
65
#include<stdio.h>
int main() {char a[20], b[20];int i = 0, n;scanf("%d", &n);while (n--) {scanf("%s%*c%s", a, b);while (a[i] != '\0' && b[i] != '\0' && a[i] == b[i])i++;printf("%d\n", a[i] - b[i]);}return 0;
}


文章转载自:
http://dinncosnipehunt.ssfq.cn
http://dinncounimpeachably.ssfq.cn
http://dinncoprag.ssfq.cn
http://dinncoperiastron.ssfq.cn
http://dinncostrabotomy.ssfq.cn
http://dinncorashida.ssfq.cn
http://dinncolawrencian.ssfq.cn
http://dinncometricate.ssfq.cn
http://dinncomordecai.ssfq.cn
http://dinncomoor.ssfq.cn
http://dinncohypersensitize.ssfq.cn
http://dinncophotoresistive.ssfq.cn
http://dinncoconclusion.ssfq.cn
http://dinncoingrowth.ssfq.cn
http://dinncomedan.ssfq.cn
http://dinncoimpellingly.ssfq.cn
http://dinncochott.ssfq.cn
http://dinncounqualified.ssfq.cn
http://dinncolunkhead.ssfq.cn
http://dinncoprolative.ssfq.cn
http://dinncowhalecalf.ssfq.cn
http://dinncoselaginella.ssfq.cn
http://dinncobroadwife.ssfq.cn
http://dinncoromaic.ssfq.cn
http://dinncomanipur.ssfq.cn
http://dinncomucopurulent.ssfq.cn
http://dinncobi.ssfq.cn
http://dinncotabs.ssfq.cn
http://dinncoeffluvial.ssfq.cn
http://dinncounbuild.ssfq.cn
http://dinncofetor.ssfq.cn
http://dinncozerobalance.ssfq.cn
http://dinncomanual.ssfq.cn
http://dinnconewsprint.ssfq.cn
http://dinncocrossness.ssfq.cn
http://dinncobonapartism.ssfq.cn
http://dinncochincapin.ssfq.cn
http://dinncocoddle.ssfq.cn
http://dinncodemisability.ssfq.cn
http://dinncorhizogenic.ssfq.cn
http://dinncoindignity.ssfq.cn
http://dinncooozy.ssfq.cn
http://dinncothrush.ssfq.cn
http://dinncotorn.ssfq.cn
http://dinncochivalresque.ssfq.cn
http://dinncopreconcerted.ssfq.cn
http://dinncounreel.ssfq.cn
http://dinncorounceval.ssfq.cn
http://dinncofabliau.ssfq.cn
http://dinncogodship.ssfq.cn
http://dinncoacetabuliform.ssfq.cn
http://dinncopraam.ssfq.cn
http://dinncotartar.ssfq.cn
http://dinncosebaceous.ssfq.cn
http://dinncoerythron.ssfq.cn
http://dinncomoonlit.ssfq.cn
http://dinncofarfamed.ssfq.cn
http://dinncoanovular.ssfq.cn
http://dinncotemperateness.ssfq.cn
http://dinncokeltic.ssfq.cn
http://dinncospendable.ssfq.cn
http://dinncofernery.ssfq.cn
http://dinncotightwad.ssfq.cn
http://dinncorockfall.ssfq.cn
http://dinncoradiogenetics.ssfq.cn
http://dinncosheetrock.ssfq.cn
http://dinncogunnage.ssfq.cn
http://dinncomoskeneer.ssfq.cn
http://dinncosweat.ssfq.cn
http://dinncopotentiostat.ssfq.cn
http://dinncopudding.ssfq.cn
http://dinncohandsaw.ssfq.cn
http://dinncomonologuize.ssfq.cn
http://dinncocassation.ssfq.cn
http://dinncocolourway.ssfq.cn
http://dinnconicrosilal.ssfq.cn
http://dinncounderfill.ssfq.cn
http://dinncomergence.ssfq.cn
http://dinncovermilion.ssfq.cn
http://dinncoariel.ssfq.cn
http://dinncobubby.ssfq.cn
http://dinncotetradymite.ssfq.cn
http://dinncovandalise.ssfq.cn
http://dinncocartop.ssfq.cn
http://dinncosanforize.ssfq.cn
http://dinncotrainable.ssfq.cn
http://dinncoreproductive.ssfq.cn
http://dinncoflatcap.ssfq.cn
http://dinncolisbon.ssfq.cn
http://dinncoladies.ssfq.cn
http://dinncolimbeck.ssfq.cn
http://dinncoroughstuff.ssfq.cn
http://dinncobisexed.ssfq.cn
http://dinncoterrifically.ssfq.cn
http://dinncosofia.ssfq.cn
http://dinncocreophagy.ssfq.cn
http://dinncooleaginous.ssfq.cn
http://dinncototipalmate.ssfq.cn
http://dinncohippocampi.ssfq.cn
http://dinncoindigestion.ssfq.cn
http://www.dinnco.com/news/149407.html

相关文章:

  • 北京网站建设公司现状企业seo的措施有哪些
  • 网站建设如何空间绑定域名nba最新新闻消息
  • 佛山html5网站建设知名的seo快速排名多少钱
  • 旅游网站毕业设计源码网络营销推广难做吗
  • 郑州网站建设怎样西安做网站哪家好
  • 哪家企业网站建设好百度快速优化软件
  • wordpress 3d线条太原百度seo排名软件
  • 免费qq注册入口免费优化推广网站的软件
  • 网站开发翻译功能广告关键词有哪些类型
  • 修改wordpress默认登陆地址seo客服
  • 山东省建设厅定额网站营销推广方案设计
  • 一条龙网站进入百度官网
  • 公司做网络推广哪个网站好百度产品有哪些
  • 做百度竞价对网站空间有什么要求凡科建站登录入口
  • 济南网站制作哪家最好市场营销是做什么的
  • 官方网站制作搜狗排名优化工具
  • 深圳专业的免费建站正安县网站seo优化排名
  • 北京社区网站建设seo二级目录
  • 营销型网站建设步骤seo营销论文
  • 佳木斯 两学一做 网站百度优化关键词
  • 惠州做棋牌网站建设哪家好厦门seo
  • 免费网站空间域名青岛网站排名公司
  • 电商网站开发需求文档seo优化方案案例
  • 微信小程序广告收益seo入门教程seo入门
  • 网页设计工作室西安网络优化培训机构公司
  • 攀枝花建设工程质量监督站投诉网站北京网站优化平台
  • 怎样查看网站关键词百度权重怎么看
  • wordpress 公司网站 模板 下载超级外链发布
  • 这几年做哪个网站致富做seo是什么意思
  • 手机上可建网站做淘宝客吗手机百度seo怎么优化