#include <iostream> using namespace std; int days[]={0,31,28,31,30,31,30,31,31,30,31,30,31}; bool is_leap(int y){ return y%4==0&&y%100!=0||y%400==0; } //以0为参照 int getdays(int y,int m,int d){ int res=0; for(int i=1;i<y;i++){ if(is_leap(i)) res+=366; else ...