###[编程入门]结构体之时间设计-超easy版!! 摘要:###[编程入门]结构体之时间设计-超easy版!! 主要分四步: 1. 创建结构体 2. 判断年份是否为闰年 3. 记录各月份的总天数 4. 对天数累加 先看代码 #i…… 题解列表 2023年04月03日 0 点赞 0 评论 185 浏览 评分:9.9
暴力出奇迹 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ struct date { int year; int mouth; int day; }a; scanf…… 题解列表 2023年03月20日 0 点赞 0 评论 92 浏览 评分:0.0
结构体之时间设计——计算为一年的第几天 摘要:解题思路:将有31天和30天的月份分开来用列表存放,然后计算注意事项:闰年2月比平年多一天并不是为奇数的月份的天数就有31天参考代码:a,b,c = map(int,input().split())L…… 题解列表 2023年03月14日 0 点赞 0 评论 91 浏览 评分:0.0
c++解题思路 摘要:```cpp #include using namespace std; struct time { int year; int month; int day; };…… 题解列表 2023年03月07日 0 点赞 0 评论 157 浏览 评分:9.9
python求解年月日问题 摘要:解题思路:注意事项:参考代码:year,month,day=map(int,input().split())sum=daydays = [31,28,31,30,31,30,31,31,30,31,3…… 题解列表 2023年02月26日 0 点赞 0 评论 125 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:```cpp #include using namespace std; struct Date { int year,mouth,day; }; int IsLeapY…… 题解列表 2023年02月24日 0 点赞 1 评论 1139 浏览 评分:9.9
挑战这道题最复杂的题解! 摘要:解题思路:这个题不难,但是我写的很复杂。通过调用两个函数来计算是第几天,大家略看一下就能懂。注意事项:我这种写法太浪费时间,看看就好,还是建议用两个数组代替我这两个函数。参考代码:#include<s…… 题解列表 2023年02月10日 0 点赞 0 评论 116 浏览 评分:9.9
结构体之时间设计C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>struct date{ int year; int month; int d…… 题解列表 2023年02月02日 0 点赞 0 评论 131 浏览 评分:0.0
日期非结构解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, y, r; int h; int i; int sum=0; scanf("%d%d%d", &n…… 题解列表 2023年01月20日 0 点赞 0 评论 105 浏览 评分:0.0
结构体之时间设计(C语言) 摘要:#include<stdio.h> typedef struct date { int year; int month; int day; }DATE; int main() {…… 题解列表 2023年01月11日 0 点赞 0 评论 86 浏览 评分:0.0