Problem 19
Counting Sundays
You are given the following information, but you may prefer to do some research for yourself.
Jan was a Monday.- Thirty days has September,
April, June and November.
All the rest have thirty-one,
Saving February alone,
Which has twenty-eight, rain or shine.
And on leap years, twenty-nine. - A leap year occurs on any year evenly divisible by
, but not on a century unless it is divisible by .
How many Sundays fell on the first of the month during the twentieth century (
周日计数
下列信息是已知的,当然你也不妨自己再验证一下:
年 月 日是周一。- 三十天在九月中,
四六十一也相同。
剩下都是三十一,
除去二月不统一。
二十八天平常年,
多加一天在闰年。 - 闰年指的是能够被
整除却不能被 整除,或者能够被 整除的年份。
在二十世纪(
Gitalking ...