先算周几,再模拟 #include <bits/stdc++.h> using namespace std; int GetWeekDay(int y,int m,int d)//0为周一,依此类推 { if(m==1) m=13,y--; if(m==2) m=14,y--; int week=(d+2*m+3*(m+1)/5+y+y/4-y/100+y/400)%7; return week; } int t, yy, mm, dd, h, m, s, week; void solve()…