3
蓝桥杯——java(b组)省赛
source link: https://blog.csdn.net/weixin_59796310/article/details/123441464
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
目录
1.等差数列
解题思路:
源码附上:
2.世纪末的星期天
这里 我更推荐大家用java 里的 api进行解题
也就是使用calendar 日期类
常用的日历字段
要注意的是:MONTH字段是从 0开始计数的 一定要注意哦(doge)
所以我们这里的MONTH对应的值应该是11
DAY_OF_WEEK中 星期天对应的是1,星期2对应的是2。星期六对应的是7
源码附上:
以上两道题 就是 小王同学给友友们准备的两道 b组的题目 希望友友们在不到一个月的比赛里
争取拿奖哦!主要是为了锻炼自己
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK