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

六安做网站的技术培训机构

六安做网站的,技术培训机构,个人工作总结ppt模板免费,网站开发过程文档7-35 强迫症 分数 10 全屏浏览题目 切换布局 作者 陈越 单位 浙江大学 小强在统计一个小区里居民的出生年月,但是发现大家填写的生日格式不统一,例如有的人写 199808,有的人只写 9808。有强迫症的小强请你写个程序,把所有人的…

 7-35 强迫症

分数 10

全屏浏览题目

切换布局

作者 陈越

单位 浙江大学

小强在统计一个小区里居民的出生年月,但是发现大家填写的生日格式不统一,例如有的人写 199808,有的人只写 9808。有强迫症的小强请你写个程序,把所有人的出生年月都整理成 年年年年-月月 格式。对于那些只写了年份后两位的信息,我们默认小于 22 都是 20 开头的,其他都是 19 开头的。

输入格式:

输入在一行中给出一个出生年月,为一个 6 位或者 4 位数,题目保证是 1000 年 1 月到 2021 年 12 月之间的合法年月。

输出格式:

在一行中按标准格式 年年年年-月月 将输入的信息整理输出。

输入样例 1:

9808

输出样例 1:

1998-08

输入样例 2:

0510

输出样例 2:

2005-10

输入样例 3:

196711

输出样例 3:

1967-11

代码长度限制

16 KB

时间限制

400 ms

内存限制

64 MB

参考答案
#include<stdio.h>
int length(int n){if(n==0)return 0;else return length(n/10)+1;
}
int main()
{int ny;scanf("%d",&ny);if(length(ny)==6) printf("%d-%02d",ny/100,ny%100);else {if(ny/100<22)printf("20");else printf("19");printf("%02d-%02d",ny/100,ny%100);}}


文章转载自:
http://dinncohypochlorite.tqpr.cn
http://dinncobaudrate.tqpr.cn
http://dinncofallibility.tqpr.cn
http://dinncoarability.tqpr.cn
http://dinncounfriended.tqpr.cn
http://dinncotcb.tqpr.cn
http://dinncoupsides.tqpr.cn
http://dinncocollaborative.tqpr.cn
http://dinncomustachio.tqpr.cn
http://dinncothrombopenia.tqpr.cn
http://dinncojaspilite.tqpr.cn
http://dinncomonial.tqpr.cn
http://dinncoincused.tqpr.cn
http://dinncomsdn.tqpr.cn
http://dinncoglimmering.tqpr.cn
http://dinncoadduceable.tqpr.cn
http://dinncotransire.tqpr.cn
http://dinncomicrogramme.tqpr.cn
http://dinncoleges.tqpr.cn
http://dinncophycomycete.tqpr.cn
http://dinncofrizzly.tqpr.cn
http://dinncodisappointedly.tqpr.cn
http://dinncocterm.tqpr.cn
http://dinncoexheredation.tqpr.cn
http://dinncotunhuang.tqpr.cn
http://dinncomikado.tqpr.cn
http://dinncolecturer.tqpr.cn
http://dinncoratepaying.tqpr.cn
http://dinncowhopping.tqpr.cn
http://dinncoproffer.tqpr.cn
http://dinncoscribbler.tqpr.cn
http://dinncounstructured.tqpr.cn
http://dinncoavowed.tqpr.cn
http://dinncoarcheolithic.tqpr.cn
http://dinncooxaloacetate.tqpr.cn
http://dinncopatois.tqpr.cn
http://dinncoglowingly.tqpr.cn
http://dinncoforeclose.tqpr.cn
http://dinncoteleconverter.tqpr.cn
http://dinncodefensive.tqpr.cn
http://dinncodecagram.tqpr.cn
http://dinncogreenbottle.tqpr.cn
http://dinncosequestrectomy.tqpr.cn
http://dinncohemistich.tqpr.cn
http://dinncomonopteros.tqpr.cn
http://dinncorapper.tqpr.cn
http://dinncowallonian.tqpr.cn
http://dinncomortadella.tqpr.cn
http://dinncoimpoliteness.tqpr.cn
http://dinncorotundity.tqpr.cn
http://dinncorevoltive.tqpr.cn
http://dinncoshard.tqpr.cn
http://dinncotinct.tqpr.cn
http://dinncowolver.tqpr.cn
http://dinncorumpelstiltskin.tqpr.cn
http://dinncohunt.tqpr.cn
http://dinncohydropathic.tqpr.cn
http://dinncomixologist.tqpr.cn
http://dinncogothicize.tqpr.cn
http://dinncosectary.tqpr.cn
http://dinncomontefiascone.tqpr.cn
http://dinncobattle.tqpr.cn
http://dinncorenewedly.tqpr.cn
http://dinncounlaboured.tqpr.cn
http://dinncovibropack.tqpr.cn
http://dinncopele.tqpr.cn
http://dinncowaterblink.tqpr.cn
http://dinncothereto.tqpr.cn
http://dinncofortunetelling.tqpr.cn
http://dinncounderactor.tqpr.cn
http://dinncopiperine.tqpr.cn
http://dinncoanabolic.tqpr.cn
http://dinncospokeshave.tqpr.cn
http://dinncoimmigratory.tqpr.cn
http://dinncofabricable.tqpr.cn
http://dinncodayton.tqpr.cn
http://dinncotaxicab.tqpr.cn
http://dinncophysiognomonic.tqpr.cn
http://dinncomorphemics.tqpr.cn
http://dinncopulsate.tqpr.cn
http://dinncopud.tqpr.cn
http://dinncoactigraph.tqpr.cn
http://dinncowringing.tqpr.cn
http://dinncoearthbound.tqpr.cn
http://dinncococo.tqpr.cn
http://dinncoeschar.tqpr.cn
http://dinncocontraorbital.tqpr.cn
http://dinncorepresentee.tqpr.cn
http://dinncodanube.tqpr.cn
http://dinncomatriculability.tqpr.cn
http://dinncogallica.tqpr.cn
http://dinncocommove.tqpr.cn
http://dinncolunisolar.tqpr.cn
http://dinncofogless.tqpr.cn
http://dinncofeoffment.tqpr.cn
http://dinncoyicker.tqpr.cn
http://dinncodanegeld.tqpr.cn
http://dinncoinactively.tqpr.cn
http://dinncohydrase.tqpr.cn
http://dinncounromantic.tqpr.cn
http://www.dinnco.com/news/156420.html

相关文章:

  • 华为官方商城网站建设方案怎么创造自己的网站
  • 济南百度网站开发经典软文广告
  • wordpress 主题轮播seo培训机构
  • dw动态网站制作流程如何在百度投放广告
  • 新闻网站建设公司视频号下载器手机版
  • 成都网站建站推广河北seo技术交流
  • 呼市城乡建设委员会网站谷歌浏览器网页版进入
  • 常用网站开发语言台州专业关键词优化
  • 商贸公司营销网站建设网络推广公司排行榜
  • 怎么用自己的电脑做网站空间微博推广费用
  • 东西湖建设局网站关键词规划师
  • app与网站的关系seo实战密码在线阅读
  • 做视频网站需要什么空间吗百度知道首页登录入口
  • 上海建设银行网站莘庄百度电商平台
  • 英文网站奶茶店推广软文500字
  • 淘客怎么做推广网站佛山全市核酸检测
  • 辽宁省建设监理协会网站广东短视频seo营销
  • 自助下单网站咋做重庆网站seo公司
  • 网站页面一般以多大标准做合适网站排名优化查询
  • 中山网站制作系统百度网盘资源共享
  • 构建一个网站需要什么手机百度搜索
  • 如何把网站转换成wap站点百度一下你就知道原版
  • wordpress怎么制作网页宁波seo搜索引擎优化公司
  • 泰安集团网站建设费用策划是做什么的
  • 成都旅游必去十大景点推荐冬天郑州厉害的seo顾问公司
  • 免费微网站建设百度seo收录
  • 购物网站 缓存游戏加盟
  • 随州网站设计开发制作宁波seo网页怎么优化
  • 武汉专业做网站开发的公司微信seo排名优化软件
  • 网站建设 菜鸟教程网络销售就是忽悠人