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

国外网站如何做推广wordpress加链接

国外网站如何做推广,wordpress加链接,创业网站建设政策,全国招聘网最新招聘信息题目描述 题目分析 对于输入的abc我们可以以a为年也可以以c为年#xff0c;将abc,cab,cba这三种情况进行判断合法性即可#xff0c;注意需要排序去重#xff0c;所以考虑使用set 此处为纯模拟的写法#xff0c;但使用循环代码会更加简洁。 方法一#xff1a; #include将abc,cab,cba这三种情况进行判断合法性即可注意需要排序去重所以考虑使用set 此处为纯模拟的写法但使用循环代码会更加简洁。 方法一 #includebits/stdc.h using namespace std; const int N 2e5 10; setstring st; string s[N]; int cnt; int m[13] {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; bool is_ren(int x) {if((x % 4 0 x % 100 ! 0)||(x % 400 0))return true;return false; } int main() {int a, b, c;scanf(%d/%d/%d,a, b, c);//以a为年 //abcif(a 59){//abcif(b 12 b 0){int x 2000 a;if(is_ren(x))m[2] 29;else m[2] 28;if(c m[b] c 0){cnt ;s[cnt] 20;if(a 10)s[cnt] 0;s[cnt] (to_string(a) - );if(b 10)s[cnt] 0;s[cnt] (to_string (b) -);if(c 10)s[cnt] 0;s[cnt] to_string(c);st.insert(s[cnt]);}}}else if(a 59){//abcif(b 12 b 0){int x 1900 a;if(is_ren(x))m[2] 29;else m[2] 28;if(c m[b] c 0){cnt ;s[cnt] 19;if(a 10)s[cnt] 0;s[cnt] to_string(a) - ;if(b 10)s[cnt] 0;s[cnt] to_string (b) -;if(c 10)s[cnt] 0;s[cnt] to_string(c);st.insert(s[cnt]);}}}//以c为年 //cab, cba if(c 59){//cabif(a 12 a 0){int x 2000 c;if(is_ren(x))m[2] 29;else m[2] 28;if(b m[a] b 0){s[ cnt] 20;if(c 10)s[cnt] 0;s[cnt] to_string(c) - ;if(a 10)s[cnt] 0;s[cnt] to_string (a) -;if(b 10)s[cnt] 0;s[cnt] to_string(b);st.insert(s[cnt]);}}//cbaif(b 12 b 0){int x 2000 c;if(is_ren(x))m[2] 29;else m[2] 28;if(a m[b] a 0){cnt ;s[cnt] 20;if(c 10)s[cnt] 0;s[cnt] to_string(c) - ;if(b 10)s[cnt] 0;s[cnt] to_string (b) -; if(a 10)s[cnt] 0;s[cnt] to_string(a);st.insert(s[cnt]);} }}else if(c 59){//cabif(a 12 a 0){int x 1900 c;if(is_ren(x))m[2] 29;else m[2] 28;if(b m[a] b 0){cnt ;s[cnt] 19;if(c 10)s[cnt] 0;s[cnt] to_string(c) - ;if(a 10)s[cnt] 0;s[cnt] to_string (a) -;if(b 10)s[cnt] 0;s[cnt] to_string(b);st.insert(s[cnt]);}}//cbaif(b 12 b 0){int x 1900 c;if(is_ren(x))m[2] 29;else m[2] 28;if(a m[b] a 0){cnt ;s[cnt] 20;if(c 10)s[cnt] 0;s[cnt] to_string(c) - ;if(b 10)s[cnt] 0;s[cnt] to_string (b) -;if(a 10)s[cnt] 0;s[cnt] to_string(a);st.insert(s[cnt]);}}}for(auto i : st){cout i \n;}return 0; } 方法二 #includebits/stdc.h using namespace std; int days[13] {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; bool check_valid(int year, int month, int day) {if(month 0 || month 12)return false;if(day 0)return false;if(month ! 2){if(day days[month])return false;}else{int leap year % 100 year % 4 0 || year % 400 0;if(day 28 leap)return false;}return true; } int main() {int a, b, c;scanf(%d/%d/%d, a, b, c);for(int date 19600101; date 20591231; date ){int year date / 10000, month date % 10000 / 100, day date % 100;if(check_valid(year, month, day)){if(year % 100 a month b day c ||month a day b year % 100 c ||day a month b year % 100 c)printf(%d-%02d-%02d\n, year, month, day);}}return 0; }
http://www.w-s-a.com/news/871319/

相关文章:

  • wdcp 网站备份东莞网站建设五金建材
  • 天津制作网站的公司电话wordpress架设进出销
  • tomcat做静态网站prestashop和wordpress
  • 上海响应式建站wap网站微信分享代码
  • 四川建筑人才招聘网南昌网站优化
  • 南充网站建设制作重庆有的设计网站大全
  • 深圳沙井做网站公司网站搭建谷歌seo
  • 学校资源网站的建设方案山西省住房城乡建设厅网站
  • 医疗行业网站建设深圳网络科技公司排名
  • 企业形象型网站建设wordpress chess
  • 网站的域名起什么好处罗湖网站建设公司乐云seo
  • 网站的服务器在哪里sem推广软件选哪家
  • 科技网站欣赏婚庆公司经营范围
  • 网站后台管理系统php校园网站建设意见表填写
  • 网站建设问题调查常州百度推广代理公司
  • net网站开发学习谷歌优化培训
  • 企业网站公众号广东网站建设方便
  • 2008r2网站建设张店网站建设方案
  • 企业网站首页学生做的网站成品
  • 网站开发 架构设计企业信息管理系统的组成不包括
  • 网站维护模式网页传奇游戏平台排行
  • 企业网站改自适应蛋糕方案网站建设
  • 网站开发技术职责网站升级中html
  • 天网网站建设百度权重高的网站
  • 明年做哪些网站致富网站站长 感受
  • 东莞营销网站建设优化怎么做微信网站推广
  • 网站建设一个多少钱php网站服务器怎么来
  • 引流用的电影网站怎么做2012服务器如何做网站
  • 什么网站可以做推广广州安全信息教育平台
  • 网站开发具备的相关知识wordpress简约文字主题