判断闰年 https://www.zhihu.com/question/25388501 #include<bits/stdc++.h> using namespace std; // 判断是否是闰年,闰年2月29天,平年2月28天 int is_leap_year(int year){ if((year%4==0 && year%100!=0) || (year%400==0)){ return 29; }else{ return 28; } } // 定义月份 int days[] = {31, 0, 31, 30, 31, 30, 31, 31, 30, 31...