2571: 蓝桥杯2020年第十一届省赛真题-回文日期 (C++) 摘要:解题思路:先构造回文日期与ABABBABA形日期,再判断日期是否合法如何构造回文日期:假设输入的日期为 n取 n 的前四位为 x,即 x = n / 10000将 x 反转后接在 x 的后面就构造了一…… 题解列表 2022年02月11日 0 点赞 7 评论 1727 浏览 评分:5.7
回文日期python 摘要:import datetimen=input()year = int(n[:4])mouth = int(n[4:6])day = int(n[6:8])start_date = datetime.d…… 题解列表 2022年04月04日 0 点赞 0 评论 642 浏览 评分:5.5
最简单解法【C++】 摘要:```cpp #include using namespace std; int uu; bool check(int year, int month, int day){ …… 题解列表 2022年03月25日 0 点赞 1 评论 308 浏览 评分:4.7
把可能的回文串凑出来即可 很简单的思路 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { static int[] Month = {31,28,31,30,31,…… 题解列表 2022年02月21日 0 点赞 0 评论 500 浏览 评分:2.0
c++ 常规解法 摘要:解题思路:因为是回文 只用考虑年份即可 且一年只有一个数先求出年份 然后根据年份判断月份是否满足要求 判断日期是否符合要求 如果符合就是回文日期注意事项:求得是当前日期之后的,不用考虑前面的日期。注意…… 题解列表 2022年03月19日 0 点赞 0 评论 316 浏览 评分:0.0
2571: 蓝桥杯2020年第十一届省赛真题-回文日期 摘要:**部分正确的话,可能要注意到的一些暗含条件:** 1.‘ABABBABA’型回文串中A与B不能相等 2.输出日期必须大于输入日期 ```cpp #include #include u…… 题解列表 2024年04月08日 0 点赞 0 评论 490 浏览 评分:0.0
回文日期(c++) 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int main(){ char arr[8]; scanf("…… 题解列表 2023年07月08日 0 点赞 0 评论 263 浏览 评分:0.0
巧用python datetime包解决以及打表输出ABABBABA型 摘要:解题思路:注意事项:参考代码:from datetime import datetime,timedeltan=input()a=int(n[:4])b=int(n[4]+n[5])c=int(n[6…… 题解列表 2023年03月22日 0 点赞 0 评论 172 浏览 评分:0.0
==================================================================== 摘要:#include<stdio.h>int main(){ int i=0,r,year,month,day,t1,t2,c1=1,c2=1; int md[][13]= {{ 0, 31,…… 题解列表 2023年03月15日 0 点赞 0 评论 193 浏览 评分:0.0
这个提示还不如不给. 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define No 0int main(){ int N,i1,i2; int a…… 题解列表 2023年03月11日 0 点赞 0 评论 171 浏览 评分:0.0