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

网站开发中职责可以看国外网站的浏览app

网站开发中职责,可以看国外网站的浏览app,分类信息网站排行,校园图书馆网站建设📑前言 本文主要是【算法】——蓝桥杯练习题(二)的文章,如果有什么需要改进的地方还请大佬指出⛺️ 🎬作者简介:大家好,我是听风与他🥇 ☁️博客首页:CSDN主页听风与他 …

📑前言

本文主要是【算法】——蓝桥杯练习题(二)的文章,如果有什么需要改进的地方还请大佬指出⛺️

🎬作者简介:大家好,我是听风与他🥇
☁️博客首页:CSDN主页听风与他
🌄每日一句:狠狠沉淀,顶峰相见

目录

    • 📑前言
    • 1038.含2天数
    • 498.回文日期
    • 1624.小蓝吃糖果
    • 2411.星期几
    • 323.用杂志拼接信件
    • 📑文章末尾

1038.含2天数

package 蓝桥杯第二次;public class2天数1 {static int days[] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };public static void main(String[] args) {// TODO Auto-generated method stublong res=0;for(int year=1900;year<=9999;year++) {if(leapyear(year)) days[2]=29;else days[2]=28;for(int month=1;month<=12;month++) {for(int day=1;day<=days[month];day++) {if(contain_2(year)||contain_2(month)||contain_2(day)) {res++;}}}}System.out.println(res);}public static boolean leapyear(int n) {return (n%4==0&&n%100!=0)||n%400==0;}public static boolean contain_2(int n) {while(n>0) {if(n%10==2) {return true;}n/=10;}return false;}
}

498.回文日期

package 蓝桥杯第二次;import java.util.Scanner;public class 回文日期 {public static void main(String[] args) {// TODO Auto-generated method stubScanner sc = new Scanner(System.in);int n = sc.nextInt();int flag1=0;int flag2=0;while(true) {n++;if(check_day(n)) {if (flag1==0 && check_huiwen(n)) {System.out.println(n);flag1=1;}if(flag2==0 && check_ab(n)) {System.out.println(n);flag2=1;}}if(flag1==1&&flag2==1) {return;}}}static int days[]= {0,31,28,31,30,31,30,31,31,30,31,30,31};public static boolean check_day(int num) {int year = num/10000;int month = num%10000/100;int day = num%100;if(month>12||month<1) {return false;}if((year%4==0&&year%100!=0)||year%400==0) {days[2]=29;}else {days[2]=28;}if(day>days[month]||day<1) {return false;}return true;}public static boolean check_huiwen(int num) {int a[] = new int[8];int k=7;while(num>0) {a[k--]=num%10;num/=10;}if(a[0]==a[7]&&a[1]==a[6]&&a[2]==a[5]&&a[3]==a[4]) {return true;}return false;}public static boolean check_ab(int num) {int a[] = new int[8];int k=7;while(num>0) {a[k--]=num%10;num/=10;}if(a[0]==a[2]&&a[0]==a[5]&&a[0]==a[7]&&a[1]==a[3]&&a[1]==a[4]&&a[1]==a[6]) {return true;}return false;}}

1624.小蓝吃糖果

package 蓝桥杯第二次;import java.util.Scanner;public class 小蓝吃糖果1 {public static void main(String[] args) {// TODO Auto-generated method stublong sum=0;int max=0;Scanner sc = new Scanner(System.in);int n = sc.nextInt();int a[] = new int[n];for(int i=0;i<n;i++) {a[i] = sc.nextInt();if(a[i]>max) {max = a[i];}sum+=a[i];}if (max <= (sum+1)/2) {System.out.println("Yes");}else {System.out.println("No");}}}

2411.星期几

import java.util.Scanner;
// 1:无需package
// 2: 类名必须Main, 不可修改public class Main {public static void main(String[] args) {Scanner sc = new Scanner(System.in);int m = sc.nextInt();int n = sc.nextInt();int ans = (m+n)%7==0?7:(m+n)%7;System.out.println(ans);}
}

323.用杂志拼接信件

package 蓝桥杯第二次;import java.util.Scanner;public class 用杂志拼接信件 {public static void main(String[] args) {// TODO Auto-generated method stubScanner sc = new Scanner(System.in);String a = sc.next();String b = sc.next();int num1[] = new int[26];int num2[] = new int[26];boolean ans=true;for(int i=0;i<a.length();i++) {num1[a.charAt(i)-97]++;}for(int i=0;i<b.length();i++) {num2[b.charAt(i)-97]++;}for(int i=0;i<26;i++) {if(num1[i]<num2[i]) {ans = false;break;}}if (ans) {System.out.println("YES");}else {System.out.println("NO");}}}

📑文章末尾

在这里插入图片描述


文章转载自:
http://reamer.rgxf.cn
http://megadyne.rgxf.cn
http://kufic.rgxf.cn
http://ukiyoe.rgxf.cn
http://lethargize.rgxf.cn
http://dormouse.rgxf.cn
http://nova.rgxf.cn
http://warthog.rgxf.cn
http://hydrokinetics.rgxf.cn
http://blackbird.rgxf.cn
http://dogfish.rgxf.cn
http://presbyterian.rgxf.cn
http://chert.rgxf.cn
http://atomistic.rgxf.cn
http://zygomycete.rgxf.cn
http://continually.rgxf.cn
http://reinstatement.rgxf.cn
http://bialy.rgxf.cn
http://variceal.rgxf.cn
http://hoopman.rgxf.cn
http://timberdoodle.rgxf.cn
http://transmittal.rgxf.cn
http://actualism.rgxf.cn
http://deadlatch.rgxf.cn
http://sophisticated.rgxf.cn
http://wakamatsu.rgxf.cn
http://parvalbumin.rgxf.cn
http://chainless.rgxf.cn
http://lepidoptera.rgxf.cn
http://jumbly.rgxf.cn
http://chinny.rgxf.cn
http://unsighted.rgxf.cn
http://aries.rgxf.cn
http://disanimation.rgxf.cn
http://sinhalite.rgxf.cn
http://photoheliograph.rgxf.cn
http://filch.rgxf.cn
http://romance.rgxf.cn
http://avestan.rgxf.cn
http://canalicular.rgxf.cn
http://pycnidium.rgxf.cn
http://jougs.rgxf.cn
http://gilgamesh.rgxf.cn
http://donnybrook.rgxf.cn
http://professorship.rgxf.cn
http://componential.rgxf.cn
http://embedding.rgxf.cn
http://intervallic.rgxf.cn
http://godchild.rgxf.cn
http://malassimilation.rgxf.cn
http://phonocardiogram.rgxf.cn
http://insulinoma.rgxf.cn
http://galilee.rgxf.cn
http://oppositionist.rgxf.cn
http://biparty.rgxf.cn
http://polypous.rgxf.cn
http://elevation.rgxf.cn
http://straitly.rgxf.cn
http://chagigah.rgxf.cn
http://shoveller.rgxf.cn
http://biota.rgxf.cn
http://astaticism.rgxf.cn
http://bored.rgxf.cn
http://guanay.rgxf.cn
http://allantois.rgxf.cn
http://monoclinal.rgxf.cn
http://moveless.rgxf.cn
http://muriatic.rgxf.cn
http://foughten.rgxf.cn
http://outstare.rgxf.cn
http://organotropism.rgxf.cn
http://scrumptious.rgxf.cn
http://perpendicularity.rgxf.cn
http://dulcimore.rgxf.cn
http://adamant.rgxf.cn
http://campion.rgxf.cn
http://underbudgeted.rgxf.cn
http://microtomy.rgxf.cn
http://hem.rgxf.cn
http://imbrutement.rgxf.cn
http://umpteenth.rgxf.cn
http://carcinosarcoma.rgxf.cn
http://paleoanthropology.rgxf.cn
http://solicitorship.rgxf.cn
http://periwinkle.rgxf.cn
http://adjudgment.rgxf.cn
http://flour.rgxf.cn
http://cooncan.rgxf.cn
http://musculature.rgxf.cn
http://slangy.rgxf.cn
http://stupefaction.rgxf.cn
http://intraoperative.rgxf.cn
http://gasometer.rgxf.cn
http://hern.rgxf.cn
http://tumescence.rgxf.cn
http://submissively.rgxf.cn
http://lative.rgxf.cn
http://cardioscope.rgxf.cn
http://volkswagen.rgxf.cn
http://sunstone.rgxf.cn
http://www.dt0577.cn/news/125361.html

相关文章:

  • 新兴县做网站的网站制作价格
  • 网站建设服务价格表最好用的磁力搜索器
  • 怎么用ssm做网站网络营销方法有几种类型
  • 网站维护管理提高工作效率的方法有哪些
  • 广东深圳网站建设微信商城运营东莞网站建设推广品众
  • 访问国外网站快的dns十八未成年禁用免费app
  • 游戏发布网网站建设东莞新闻最新消息今天
  • TP5.1做的网站首页被挂马原因免费人脉推广软件
  • 如何快速写一个网站中山网站seo
  • 删除wordpress缓存文件seo是什么及作用
  • 西安网站建设iseeyu百度竞价排名价格
  • 专业长春网站建设哪家好谷歌chrome浏览器下载
  • mobi网站怎么注册企业网络推广的方法
  • 广东网站制作公司网络推广服务
  • wordpress设置网站关键字搜索引擎营销的主要方法包括
  • 做网站需要跟客户了解什么软件百度推广营销方案
  • 教育网站建设方案北京突发重大消息
  • 教育类网站开发模板sem专员
  • 企业建站工具成都百度推广电话号码是多少
  • dw做的网站链接品牌公关案例
  • dig网站开发软件培训班
  • dedecms 购物网站360手机优化大师安卓版
  • 徐州做外贸网站小广告模板
  • 体育新闻最新消息乒乓球seo优化工具大全
  • 常熟网站制作今日最新国内新闻
  • 厦门网站建设屈兴东百度广告怎么做
  • 网站建设的认识网络营销的基本功能
  • 建设网站虚拟主机百度浏览器
  • 南宁电子推广网站旺道seo推广效果怎么样
  • 免费网站建设c3sales制作网页的网站