前面也有帖说过了,答案似乎是 3228 而非 3298 。
#include<bits/stdc++.h>
#define I using
#define AK namespace
#define IOI std
I AK IOI;
//#define int long long
//#define getchar getchar_unlocked
inline int rd(){int x=0,f=1;char ch=getchar();for(;!isdigit(ch);ch=getchar())if(ch=='-')f=-1;for(;isdigit(ch);ch=getchar())x=(x<<3)+(x<<1)+(ch^48);return x*f;}
inline void write(int _v){if(_v<0){_v=~(_v-1);putchar('-');}if(_v>9)write(_v/10);putchar(_v%10^48);}
inline void tbl(){ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);}
int a[]={0,31,29,31,30,31,30,31,31,30,31,30,31},b[]={13,1,2,3,5,4,4,2,2,2};
signed main(){
int ans=0;
for(int i=2000;i<=2024;++i){
a[2]=((i%4==0&&i%100!=0)||i%400==0)?29:28;
for(int j=1;j<=12;++j)
for(int k=1;k<=a[j];++k){
ans+=(15+b[(i/10)%10]+b[i%10]+b[j/10]+b[j%10]+b[k/10]+b[k%10])>50;
if(i==2024&&j==4&&k==13)return cout<<ans,0;
}
}
}