题解 1049: [编程入门]结构体之时间设计

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

[编程入门]时间设计

摘要:解题思路:数组定义来累加注意事项:判断闰年参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c,s,z[15]={0,31,28,31,3……

编写题解 1049: [编程入门]结构体之时间设计

解题思路:好像没什么问题,但是运行还是有百分之五十不通过,望各位大佬指点。注意事项:参考代码:year,month,day=map(int,input().split())sum=0if(year%4==0andyear%100!=0)oryear%100==0:foriinrange(1,

结构体之时间设计

摘要:解题思路:可参考注释注意事项:参考代码:#include<stdio.h> struct Date{     int year;     int month;     int day; };……

第1049题,巧妙利用Switch不加break

摘要:解题思路:注意事项:闰年:能被四整除同时不被100整除,或能被400整除year%4==0&&year%100||year%400==0参考代码:#include<stdio.h>struct dat……