文件名称:Biorhythms
介绍说明--下载内容均来自于网络,请自行研究使用
poj 1006 生理周期
Descr iption
人生来就有三个生理周期,分别为体力、感情和智力周期,它们的周期长度为23天、28天和33天。每一个周期中有一天是高峰。在高峰这天,人会在相应的方面表现出色。例如,智力周期的高峰,人会思维敏捷,精力容易高度集中。因为三个周期的周长不同,所以通常三个周期的高峰不会落在同一天。对于每个人,我们想知道何时三个高峰落在同一天。对于每个周期,我们会给出从当前年份的第一天开始,到出现高峰的天数(不一定是第一次高峰出现的时间)。你的任务是给定一个从当年第一天开始数的天数,输出从给定时间开始(不包括给定时间)下一次三个高峰落在同一天的时间(距给定时间的天数)。例如:给定时间为10,下次出现三个高峰同天的时间是12,则输出2(注意这里不是3)-poj 1006 menstrual cycles Descr iption born with three menstrual cycles, were physical, emotional and intellectual cycles, their cycle length is 23 days, 28 days and 33 days. Every day is a cycle peak. At the peak, people will behave well in corresponding ways. For example, the peak period of intelligence, quick thinking people, concentration will be easier. Because different circumference three cycles, it is usually peaks of the three cycles of the same day. For each person, we want to know when the peak falls on the same day three. For each period, we will be given the first day of the beginning of the current year, (not necessarily the first time the peak appears) to a peak in the number of days. Your task is given a number of days the first day of the year the number of the output a given start time (not including the given time) the next triple peak the same day (the number of days a given time). For example: given time is 10, with the next peak occurred three days is 12, then
Descr iption
人生来就有三个生理周期,分别为体力、感情和智力周期,它们的周期长度为23天、28天和33天。每一个周期中有一天是高峰。在高峰这天,人会在相应的方面表现出色。例如,智力周期的高峰,人会思维敏捷,精力容易高度集中。因为三个周期的周长不同,所以通常三个周期的高峰不会落在同一天。对于每个人,我们想知道何时三个高峰落在同一天。对于每个周期,我们会给出从当前年份的第一天开始,到出现高峰的天数(不一定是第一次高峰出现的时间)。你的任务是给定一个从当年第一天开始数的天数,输出从给定时间开始(不包括给定时间)下一次三个高峰落在同一天的时间(距给定时间的天数)。例如:给定时间为10,下次出现三个高峰同天的时间是12,则输出2(注意这里不是3)-poj 1006 menstrual cycles Descr iption born with three menstrual cycles, were physical, emotional and intellectual cycles, their cycle length is 23 days, 28 days and 33 days. Every day is a cycle peak. At the peak, people will behave well in corresponding ways. For example, the peak period of intelligence, quick thinking people, concentration will be easier. Because different circumference three cycles, it is usually peaks of the three cycles of the same day. For each person, we want to know when the peak falls on the same day three. For each period, we will be given the first day of the beginning of the current year, (not necessarily the first time the peak appears) to a peak in the number of days. Your task is given a number of days the first day of the year the number of the output a given start time (not including the given time) the next triple peak the same day (the number of days a given time). For example: given time is 10, with the next peak occurred three days is 12, then
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Biorhythms.txt