生日隔几周


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

我今年20岁了,是1999年1月1日出生的。你多大了?我希望有一个程序能够计算我俩相差几周,只要告诉你的生日,就能计算出来。你能写这样的程序吗?

Input

多个日期。每个日期含y,m,d, 表示某人的出生年月日(y, m,d均为合理数据)。

Output

对于每行给出的生日信息,计算距离我的生日相差几周(不满一周的按一周计算,例如相差3周零1天,则算相差4周)。一行一个结果,尾行需回车。

Sample

Input

2000 1 13
2011 6 21
2012 5 7
1999 1 1
1995 8 8

Output

54
651
697
0
178

Source: mm


Comments

There are no comments at the moment.