#include <stdio.h>
int CalDay(int y,int m,int d)
{
int i,a[12] = {31,28,31,30,31,30,31,31,30,31,30,31},sum = 0;
if(y % 400 == 0 || (y % 100 != 0 && y % 4 == 0))
a[1] = 29;
for(i = 0; i < m-1; i++)
sum += a[i];
return sum+d;
}
int main()
{
int n,i;
whi...