链接:https://witacm.com/problemset.php?p=11 A : 过了几天 写时间或者日期内的题目时先把单位统一化成低级单位,计算完成后再化成标准单位。 输入的t的范围由于编码原因没有显示出来 # include <iostream> struct date { int year; int month; int day; }; int mon[20] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; bool isLeap(int year) { return (year % 400 == ...