0
点赞
收藏
分享

微信扫一扫

北京大学ACM Problems 1006:Biorhythms

小桥流水2016 2022-04-15 阅读 68
c语言c++

Biorhythms

Time Limit: 1000MS Memory Limit: 10000K
Total Submissions: 161776 Accepted: 52760

Description

Some people believe that there are three cycles in a person's life that start the day he or she is born. These three cycles are the physical, emotional, and intellectual cycles, and they have periods of lengths 23, 28, and 33 days, respectively. There is one peak in each period of a cycle. At the peak of a cycle, a person performs at his or her best in the corresponding field (physical, emotional or mental). For example, if it is the mental curve, thought processes will be sharper and concentration will be easier.
Since the three cycles have different periods, the peaks of the three cycles generally occur at different times. We would like to determine when a triple peak occur

举报

相关推荐

0 条评论