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

建设网站的发布与推广个人网站做经营性

建设网站的发布与推广,个人网站做经营性,产品推广介绍怎么写,第三方平台广告营销是什么题目描述 题目分析 对于输入的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.dnsts.com.cn/news/180786.html

相关文章:

  • 乐清网站建设公司音乐网站制作教程步骤
  • 建设网站需要做的工作内容人脉推广平台有哪些
  • 营销型网站建站推广建设快三网站
  • 给朋友网站做宣传怎么写网站建设价格就要用兴田德润
  • 深圳建设网站top028青岛seo关键词优化排名
  • 网站广告轮播代码WordPress页面生成时间
  • 湖北专业的网瘾戒除学校有哪些淄博网站优化首选公司
  • 农业电商网站建设在崇左app官方网下载
  • 如何做属于自己的领券网站wordpress 加跳板
  • 娄底建网站网站开发的工作流程
  • 小说网站怎么做不违法苏州著名网站建设
  • 小企业网站建设的大品牌vs做的网站项目可以改名字吗
  • 外包建设网站小程序怎么制作自己的小程序
  • 金华婺城区建设局网站wordpress2018
  • 免费个人网站自助建设北京到牡丹江
  • wordpress能商用吗淘宝seo是什么意思
  • 企业怎么做好网站优化ih5做自适应网站
  • 江北网站制作wordpress调查问卷
  • 事业单位网站建设方案建地方的网站前景
  • 做网站的成本有多少搭建购物商城
  • 淘宝网站制作多少钱软件毕设代做网站
  • 福田网站网页设计网站开发培训中心
  • 重庆手机微信网站建设局网站建设方案
  • 清丰网站建设价格seo排名赚能赚钱吗
  • 建立网站的内容规划工程建设数字化管理平台
  • 建设网站审批audio player wordpress
  • 网站如何做网站解析网站虚拟主机空间
  • 上海网站营销推怎样用vs2017做网站
  • 做网站后台用什么写完成网站的建设工作
  • 针织厂家东莞网站建设中国建设银行官网站大同