POJ 1006 Biorhthms
来源:互联网 发布:视频剪辑软件下载 编辑:程序博客网 时间:2024/06/07 20:20
Description Input Output Sample Input Sample Output
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 occurs (the peaks of all three cycles occur in the same day) for any person. For each cycle, you will be given the number of days from the beginning of the current year at which one of its peaks (not necessarily the first) occurs. You will also be given a date expressed as the number of days from the beginning of the current year. You task is to determine the number of days from the given date to the next triple peak. The given date is not counted. For example, if the given date is 10 and the next triple peak occurs on day 12, the answer is 2, not 3. If a triple peak occurs on the given date, you should give the number of days to the next occurrence of a triple peak.
Case 1: the next triple peak occurs in 1234 days.
Use the plural form ``days'' even if the answer is 1.0 0 0 00 0 0 1005 20 34 3254 5 6 7283 102 23 320203 301 203 40-1 -1 -1 -1
Case 1: the next triple peak occurs in 21252 days.Case 2: the next triple peak occurs in 21152 days.Case 3: the next triple peak occurs in 19575 days.Case 4: the next triple peak occurs in 16994 days.Case 5: the next triple peak occurs in 8910 days.Case 6: the next triple peak occurs in 10789 days.
- POJ 1006 Biorhthms
- POJ[1006]
- POJ 1006
- poj 1006
- poj 1006
- poj 1006
- POJ 1006
- poj 1006
- poj 1006
- POJ-1006
- poj 1006
- POJ 1006
- poj 1006
- POJ 1006
- POJ-1006
- POJ 1006
- POJ 1006
- poj--1006
- ADO.NET学习摘记5
- hdu 1452 Happy 2004
- GetProcAddress函数
- 中国互联网“第一次世界大战”
- Studying note of GCC-3.4.6 source (126)
- POJ 1006 Biorhthms
- Shell实现Unix进程间信息交换的几种方法(转)
- 在MDK平台下调试mini2440
- GPRS MODEM池,是一款集成4-8口的彩信收发设备,主要针对高端及彩信需求量大的客户,插入移动运营商的4-8张手机SIM卡后,对外可以与移动运营商的短信中心建立无线连接,对内通过与PC的连接可以让计算机应用系统实现自由的彩信/短信收发。
- FirefoxProtable 非常好用的便携的。
- 有名管道
- 保护U盘上的资料,不让别人复制?
- hdu 1788 Chinese remainder theorem again
- 查看占用某端口的进程