通过暴力计算,遍历每个月的天数即可。(tip:day在开始时设为0,天数加到plus上,便于处理。) #include<bits/stdc++.h> using namespace std; int monthDay[2][12] = { {31,28,31,30,31,30,31,31,30,31,30,31},// 非闰年 {31,29,31,30,31,30,31,31,30,31,30,31}};// 闰年 int isRunYear(int year) { return (year%4==0&&year%100!=0) || (year%4...