1049: [编程入门]结构体之时间设计 摘要:解题思路:先给出大致公式,然后再细分不同的情况进行处理注意事项:参考代码:y, m, d = map(int, input().split())num = 30*(m-1) + dfor i in r…… 题解列表 2022年02月22日 0 点赞 0 评论 189 浏览 评分:0.0
已过多少天 摘要:解题思路:switch中的break注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct{ int year,month,day…… 题解列表 2022年02月20日 0 点赞 0 评论 196 浏览 评分:9.9
[编程入门]结构体之时间设计(C语言入门级,易懂代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct fun{ int year; int month; int day;} sum;in…… 题解列表 2022年02月07日 0 点赞 0 评论 267 浏览 评分:9.9
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:y,m,d=map(int,input().split()) d1=[31,28,31,30,31,30,31,31,30,31,30,31] d2=[31,29,3…… 题解列表 2022年01月29日 0 点赞 0 评论 124 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(python代码) 摘要:解题思路: 利用datetime 库。注意事项:参考代码:import datetimey,m,d=map(int,input().split())start = datetime.date(y…… 题解列表 2022年01月25日 0 点赞 0 评论 181 浏览 评分:0.0
[编程入门]结构体之时间设计(C++实现)含解题思路 摘要:解题思路分为4步: 1. 定义装有年月日的结构体 2. 定义判断是否为闰年的函数 3. 定义每个月天数的查询表 4. 定义主函数计算天数 ```cpp #include #inclu…… 题解列表 2022年01月25日 0 点赞 0 评论 190 浏览 评分:0.0
结构体时间设计C语言 摘要:#include<stdio.h>#include<stdlib.h>#include<string.h>struct date{int y;int m;int d;};int isrun(int y…… 题解列表 2022年01月17日 0 点赞 0 评论 137 浏览 评分:0.0
通过c语言的指针来访问和运算 摘要:#include<stdio.h> #include<string.h> typedef struct{ int year; int month; int day; }DAY,*SD…… 题解列表 2022年01月13日 0 点赞 0 评论 123 浏览 评分:0.0
结构体之时间设计 ————题解解析 摘要:解题思路:看一下闰年和平年的区分。注意事项:不要想的很复杂,只是将过完的月份加起来然后再去加上正在过的月份的天数。参考代码:#include <iostream>using namespace std…… 题解列表 2022年01月11日 0 点赞 0 评论 257 浏览 评分:9.9
创建两个数组即可 摘要:解题思路:注意事项:参考代码:#include<stdio.h> typedef struct input_time{ int year; int month; int…… 题解列表 2022年01月11日 0 点赞 0 评论 144 浏览 评分:9.9