1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[12]={31,28,31,30,31,30,31,31,30,31,30,31}; …… 题解列表 2021年11月11日 0 点赞 0 评论 239 浏览 评分:0.0
1049注意真积分 摘要:解题思路:注意事项:i要从零开始参考代码:#include <stdio.h>int main(){ int a[12]={31,28,31,30,31,30,31,31,30,31,30,31}; …… 题解列表 2021年11月09日 0 点赞 0 评论 221 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:先定义时间结构体:struct time{ int year; int month; int day; }; 定义主函数,和结构体联系起来: int ma…… 题解列表 2021年10月22日 0 点赞 0 评论 202 浏览 评分:9.9
1049: [编程入门]结构体之时间设计-题解(python) 摘要:解题思路:注意事项:参考代码:y,m,d = map(int,input().split())m1,m3,m5,m7,m8,m10,m12 = 31,31,31,31,31,31,31m4,m6,m9…… 题解列表 2021年10月16日 0 点赞 0 评论 227 浏览 评分:0.0
[编程入门]结构体之时间设计 2种解法 摘要:未运用结构体#include struct Date{ int nian; int yue; int ri; }; int main() { int a=0,m,n,i,j; s…… 题解列表 2021年10月14日 0 点赞 0 评论 223 浏览 评分:9.9
666 必看 进入惊喜 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y,n,z,j; scanf("%d%d%d",&x,&y,&n); { if(x%4==0) …… 题解列表 2021年09月11日 0 点赞 0 评论 300 浏览 评分:9.9
[编程入门]结构体之时间设计-题解(C语言) 摘要:```c #include int runyear(int year) { if(year%400==0||(year%4==0&&year%100!=0)) return 1; …… 题解列表 2021年09月09日 0 点赞 0 评论 205 浏览 评分:0.0
利用数组解决天数问题 摘要:解题思路:计算天数 首先判断是否为闰年,差别就体现在二月份28或29天 每个月的天数可以存放在数组中 输入的几号最后直接相加即可 注意事项: 本题未要求判断输入数值,但最好还是加入判…… 题解列表 2021年08月15日 0 点赞 0 评论 447 浏览 评分:9.9
数组结构体时间设计 摘要:#include<stdio.h>typedef struct today{ int year; int month; int day;}today;int main(){ today date; i…… 题解列表 2021年08月07日 0 点赞 0 评论 248 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:```c //1049: [编程入门]结构体之时间设计 /* 平年: 1、3、5、7、8、10、12:31天 4、6、9、11:30天 2:28天 闰年: 1、3、…… 题解列表 2021年07月15日 0 点赞 0 评论 466 浏览 评分:9.9