1049时间设计(结构体实现) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct shijian{ int nian; int yue; int ru;}shijian;int main(…… 题解列表 2024年05月23日 0 点赞 0 评论 98 浏览 评分:0.0
编写题解 1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> struct c{ int y; int m; int d; …… 题解列表 2024年06月11日 0 点赞 0 评论 160 浏览 评分:0.0
无聊的星期六 摘要:#include <stdio.h> typedef struct days { int year; int month; int day; }days; …… 题解列表 2024年08月17日 0 点赞 0 评论 209 浏览 评分:0.0
1049:结构体之时间设计--思路 #C++ 摘要:##### 闰年条件 1. 4 的倍数 2. 400 的倍数 ```cpp year % 4 == 0 && year % 100 != 0 //% 取模 ``` ```cpp …… 题解列表 2024年09月17日 1 点赞 0 评论 236 浏览 评分:0.0
编写题解 1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>// 定义日期结构体struct Date { int year; int month; int day;};// …… 题解列表 2024年09月20日 0 点赞 0 评论 134 浏览 评分:0.0
1049: [编程入门]结构体之时间设计(python) 摘要: ~~~python def is_lun(y): if y%100 == 0: if y%400 == 0: return True …… 题解列表 2024年10月24日 0 点赞 0 评论 119 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> struct today getstruct(void); void output(struct today x); struc…… 题解列表 2024年11月11日 1 点赞 0 评论 182 浏览 评分:0.0
新手必看最简思路 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int xx(int n,int y){ int day=0,a=0; if(n%400==0||(n%4==0&&n%100!=0…… 题解列表 2024年12月12日 0 点赞 0 评论 330 浏览 评分:0.0
[编程入门]结构体之时间设计 极简利用函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int days(int i){ int t=0; int num=0; int a[13]={0,31,28,31,…… 题解列表 2024年12月26日 0 点赞 0 评论 442 浏览 评分:0.0
简单易于理解的天数问题——Python 摘要:a,b,c=map(int,input().strip().split())m=[31,28,31,30,31,30,31,…… 题解列表 2025年01月16日 0 点赞 0 评论 121 浏览 评分:0.0