缘由https://bbs.csdn.net/topics/399168383
void 吻合日()
{//缘由https://bbs.csdn.net/topics/399168383
int n = 0, n1 = 0, y = 0, y1 = 0, h = 0, h1 = 0,
z = 0, j = 0, x = 0, t = 0;
std::cin >> n >> y >> h;
z += 自适年一月一日周一值(n) + h;
y1 = y; t = 返回月的天数(n, y);
while(--y1)z += 返回月的天数(n, y1);
std::cin >> n1 >> y1 >> h1;
while (n)
{
x = z - z / 7 * 7;
if (!x)x += 7;
if (x == h % 10)
std::cout << n << "-" << y << "-" << h << ends, ++j;
if (++h > t)
h = 1, t = 返回月的天数(n, ++y);
if (y > 12)
++n, y = 1;
++z;
if (n == n1&&y == y1&&h == h1)
n = 0;
}
}