#include <iostream> #include <string> #include <algorithm> using namespace std; const int month_day[13] = {0,31,28,31,30,31,30,31,31,30,31,30,31}; bool judge(int year, int month, int day) // 判断是否为合法日期 { // 检查月份是否合法 if(month < 1 || month > 12) return false; // 检查日期是否合法(考虑闰年) i...