C语言 结构体之时间设计& 摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct calendar{ int year; int month; int day;}date, * p;…… 题解列表 2022年11月30日 0 点赞 0 评论 182 浏览 评分:9.9
结构体之时间设计 摘要:解题思路:注意事项:参考代码:y,m,d = map(int,input().split())m1 = [1,3,5,7,8,10,12]m2 = [4,6,9,11]s = 0for i in ra…… 题解列表 2022年10月29日 0 点赞 1 评论 231 浏览 评分:9.9
1049 结构体之时间设计 真的是C并且真的用了结构体 摘要:#思路 设计一个结构体date,内含int类型的变量三个:`year,mouth,day`。 定义一个结构体变量date1,**为其中的三个变量(`date1.year,date1.mouth,d…… 题解列表 2022年10月25日 0 点赞 0 评论 183 浏览 评分:9.0
结构体之时间设计 摘要: #include #include #include #include using namespace std; struct demo …… 题解列表 2022年10月12日 0 点赞 0 评论 150 浏览 评分:0.0
1049-结构体之时间设计 摘要:解题思路:注意事项:参考代码:/*天数问题:1、3、5、7、8、10、12月:31天4、6、9、11月:30天2月:非闰年有28天,闰年有29天 闰年特点:1) 4的倍数,不是100的倍数2) 400…… 题解列表 2022年10月06日 0 点赞 0 评论 167 浏览 评分:0.0
萌新也能轻松AC之结构体之时间设计 摘要:# MarkDown编辑器基本使用说明 ```python class Today: 创建年月日结构体 def __init__(self, year, month, day): …… 题解列表 2022年09月27日 0 点赞 0 评论 315 浏览 评分:9.9
[编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ struct years { ; int year; i…… 题解列表 2022年09月19日 0 点赞 0 评论 263 浏览 评分:8.7
时间问题小模板 摘要:因为闰年平年二月份的天数不同,首先利用数组解决闰年平年问题,用check函数判断是否是闰年,并对数组作出相应修改。然后 可以先把每月 余出的几天单独拿出来, 例如12月5号 可以把这个5单独拿出来,…… 题解列表 2022年09月09日 0 点赞 0 评论 187 浏览 评分:0.0
[编程入门]结构体之时间设计 摘要:注意事项:1、从程序的第42行开始,不需要再写12月的代码了,因为第9行循环变量i最大范围是“最大的月份-1“,即12-1=11,不会轮到12月。2、一定要注意程序的第51行要加上一个‘;’,否则会出…… 题解列表 2022年08月10日 0 点赞 0 评论 269 浏览 评分:9.9
【C语言】结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,b,c; struct ymd{ int a; int b; in…… 题解列表 2022年07月21日 0 点赞 0 评论 361 浏览 评分:0.0