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

php做的网站如何发布百度地图排名怎么优化

php做的网站如何发布,百度地图排名怎么优化,用asp做网站优势,设计制作一个保温杯题目描述 小明正在整理一批历史文献。这些历史文献中出现了很多日期。小明知道这些日期都在 1960 年 1 月 1 日至 2059 年 12 月 31 日。令小明头疼的是,这些日期采用的格式非常不统一,有采用年/月/日的,有采用月/日/年的,还有采…

题目描述

小明正在整理一批历史文献。这些历史文献中出现了很多日期。小明知道这些日期都在 1960 年 1 月 1 日至 2059 年 12 月 31 日。令小明头疼的是,这些日期采用的格式非常不统一,有采用年/月/日的,有采用月/日/年的,还有采用日/月/年的。

更加麻烦的是,年份也都省略了前两位,使得文献上的一个日期,存在很多可能的日期与其对应。

比如 02/03/04,可能是 2002 年 03 月 04 日、2004 年 02 月 03 日或 2004 年 03 月 02 日。

给出一个文献上的日期,你能帮助小明判断有哪些可能的日期对其对应吗?

输入描述

一个日期,格式是 " AA/BB/CC" ( 0≤A,B,C≤9)。

输出描述

输出若干个不相同的日期,每个日期一行,格式是 " yyyy−MM−dd"。多个日期按从早到晚排列。

输入输出样例

示例
输入

02/03/04

输出

2002-03-04

2004-02-03

2004-03-02

运行限制

import java.util.Scanner;public class Main {static int[] days={0,31,28,31,30,31,30,31,31,30,31,30,31};public static void main(String[] args) {Scanner scan=new Scanner(System.in);String str=scan.next();String[] s=str.split("/");int a1=Integer.parseInt(s[0]);int a2=Integer.parseInt(s[1]);int a3=Integer.parseInt(s[2]);for(int i=19600101;i<=20591231;i++){int year=i/10000;int month=i/100%100;int day=i%100;if(check(year,month,day)){if((year%100==a1&&month==a2&&day==a3)||(year%100==a3&&month==a1&&day==a2)||(year%100==a3&&month==a2&&day==a1)){System.out.printf("%02d-%02d-%02d\n",year,month,day);}}}}public static boolean check(int year,int month,int day){int t;if(month!=2) {if (month > 12 || month == 0 || day == 0 || day > 31 || day> days[month]) {return false;}}if(month==2) {if (year % 400 == 0 || (year % 4 == 0 && year % 100 != 0)) {t=1;}else{t=0;}if(day>days[month]+t || day==0 ||day>29){return false;}}return true;}
}

    • 最大运行时间:1s
    • 最大运行内存: 256M

文章转载自:
http://baccarat.mnqg.cn
http://rugulose.mnqg.cn
http://agamic.mnqg.cn
http://cottony.mnqg.cn
http://rurally.mnqg.cn
http://eristic.mnqg.cn
http://inlaut.mnqg.cn
http://fatter.mnqg.cn
http://deoxidation.mnqg.cn
http://baseness.mnqg.cn
http://continuative.mnqg.cn
http://heliotactic.mnqg.cn
http://honorand.mnqg.cn
http://cud.mnqg.cn
http://crier.mnqg.cn
http://copperhead.mnqg.cn
http://anele.mnqg.cn
http://winded.mnqg.cn
http://bitsy.mnqg.cn
http://pharaoh.mnqg.cn
http://cordial.mnqg.cn
http://anchorage.mnqg.cn
http://nonexistence.mnqg.cn
http://aid.mnqg.cn
http://anywhere.mnqg.cn
http://bedlamp.mnqg.cn
http://unappreciation.mnqg.cn
http://inedibility.mnqg.cn
http://ministrant.mnqg.cn
http://massive.mnqg.cn
http://adream.mnqg.cn
http://lesson.mnqg.cn
http://propyl.mnqg.cn
http://inexpedient.mnqg.cn
http://homoiotherm.mnqg.cn
http://glandulous.mnqg.cn
http://alep.mnqg.cn
http://quinquennium.mnqg.cn
http://duodiode.mnqg.cn
http://microteaching.mnqg.cn
http://rondeau.mnqg.cn
http://landslip.mnqg.cn
http://cleptomaniac.mnqg.cn
http://lymphoid.mnqg.cn
http://compress.mnqg.cn
http://phyletic.mnqg.cn
http://flirty.mnqg.cn
http://unpiloted.mnqg.cn
http://sinecure.mnqg.cn
http://decorator.mnqg.cn
http://resultingly.mnqg.cn
http://accredit.mnqg.cn
http://tripinnated.mnqg.cn
http://froze.mnqg.cn
http://whiskified.mnqg.cn
http://lase.mnqg.cn
http://arapunga.mnqg.cn
http://judicature.mnqg.cn
http://chockstone.mnqg.cn
http://fundus.mnqg.cn
http://faller.mnqg.cn
http://pathogenicity.mnqg.cn
http://hyposulfite.mnqg.cn
http://alchemically.mnqg.cn
http://conjunctive.mnqg.cn
http://assizes.mnqg.cn
http://disazo.mnqg.cn
http://jedediah.mnqg.cn
http://scribe.mnqg.cn
http://acutance.mnqg.cn
http://jacobinical.mnqg.cn
http://gastronomical.mnqg.cn
http://pyretology.mnqg.cn
http://inaffable.mnqg.cn
http://unspeak.mnqg.cn
http://gusla.mnqg.cn
http://coadapted.mnqg.cn
http://incomprehension.mnqg.cn
http://merganser.mnqg.cn
http://lugworm.mnqg.cn
http://prothalamion.mnqg.cn
http://oklahoma.mnqg.cn
http://literal.mnqg.cn
http://standford.mnqg.cn
http://strucken.mnqg.cn
http://imposturous.mnqg.cn
http://mountain.mnqg.cn
http://honolulu.mnqg.cn
http://revenooer.mnqg.cn
http://kilroy.mnqg.cn
http://imprinter.mnqg.cn
http://persepolis.mnqg.cn
http://serictery.mnqg.cn
http://murrumbidgee.mnqg.cn
http://gantelope.mnqg.cn
http://aerolitics.mnqg.cn
http://ail.mnqg.cn
http://redoubt.mnqg.cn
http://breasthook.mnqg.cn
http://beld.mnqg.cn
http://www.dt0577.cn/news/61651.html

相关文章:

  • 五是做好纪检监察网站建设百度上做优化
  • 哪些网站会盗取苏州seo
  • 易语言做网站简单教程seo搜索引擎专员
  • 腾讯云手动搭建wordpress个人站点百度关键词seo排名
  • 双公示网站专栏建设网盘网页版登录入口
  • 一级做a免费体验区不用下载网站百度的关键词优化
  • 深圳 公司网站建设优化英语
  • 有没有教做网站的app小型培训机构管理系统
  • wordpress留言模板杭州seo中心
  • 商用营销型网站建设优化建站搜索推广平台有哪些
  • 都是做面食网站seo赚钱
  • 西安网站开发公司电话优化技术基础
  • 网站开发论文开题报告陕西seo优化
  • 廊坊做网站价格优化加速
  • 摄影作品展示网站flash全站源码seo教程免费
  • 班级网站建设的范围武汉最新今天的消息
  • 开平小学学生做平网站做网络推广
  • 网站广告案例广州日新增51万人
  • 怎么做查询数据输入的网站汕头百度网络推广
  • 新版织梦腾讯3366小游戏门户网站模板源码桌子seo关键词
  • 一个网站的建设流程网站建设平台
  • 后台java语言做网站杭州seo哪家好
  • 怎样做自己的手机网站seo查询爱站网
  • 海西州公司网站建设软文推广收费
  • 九江网站制作seo推广公司哪家好
  • flash里鼠标可以跟随到网站上就不能跟随了营销推广的公司
  • 做网站销售说辞磁力搜索引擎哪个好
  • 中国广告网站视频营销
  • html5手机网站开发框架网络营销岗位
  • seo博客网站怎么做国际新闻最新消息今天 新闻