注意一个细节:
if(y--==1582&&m>=10&&d>=15) ans-=10; while(m--) ans+=moth[m]; while(y--){ ……
WA
if(y==1582&&m>=10&&d>=15) ans-=10; while(m--) ans+=moth[m]; while(y--&&y>0){ ……
AC