枚举年份就行了,很常见的一种统计日期的写法 #include <bits/stdc++.h> #define il inline using namespace std; using ll = long long; using ull = unsigned long long; using int128=__int128_t; const ll N = 2e5 + 5, mod =998244353, inf = 2e18; const double esp=1e-9; double PI=3.1415926; int month[]={0,31,28,31,30,31,30,31...