返回题库

星期推算

Date Projection

专题
Brainteaser / 脑筋急转弯
难度
L3

题目详情

1,2,,71, 2, \ldots, 7 分别表示一周中的各天(星期日、星期一、...、星期六)。那么星期一之后第 100 天是星期几(用整数表示)?

Let 1,2,,71, 2, \ldots, 7 be the days of the week (Sunday, Monday, ..., Saturday). What day of the week will it be 100 days after Monday (as an integer)?

解析

每隔 7 天都会再次回到星期一。因为 mod(100,7)=2\text{mod}(100,7)=2,所以从最后一个星期一往后还要再过 2 天,因此星期一之后第 100 天是星期三,对应整数为 44


Original Explanation

Every seventh day is a Monday. There will be mod(100,7)=2\text{mod}(100,7)=2 days remaining after the last Monday, and thus 100 days after Monday is a Wednesday (4).