#include <algorithm> #include <bits/stdc++.h> #include <string> using namespace std; int day31[7] = {1, 3, 5, 7, 8, 10, 12}; int day30[4] = {4, 6, 9, 11}; bool run(int year) { return (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0); } bool p(string t,int endyear,int ...