Location:
Search - poj 33
Search list
Description: 包括计算几何、特殊数据结构、组合数学等知识点的代码。每个代码对应一道ACM试题,根据代码头说明找到题目具体来源,比如POJ 2050。来自NUAA ACM校队,ACM比赛必备!-Include computational geometry, special data structure, combinatorial mathematics and other knowledge-point code. Each code corresponds to ACM questions together, in accordance with the code first note to find the topic specific sources, such as POJ 2050. NUAA ACM from the school team, ACM must match!
Platform: |
Size: 154624 |
Author: yesrush |
Hits:
Description: poj 1006 生理周期
Description
人生来就有三个生理周期,分别为体力、感情和智力周期,它们的周期长度为23天、28天和33天。每一个周期中有一天是高峰。在高峰这天,人会在相应的方面表现出色。例如,智力周期的高峰,人会思维敏捷,精力容易高度集中。因为三个周期的周长不同,所以通常三个周期的高峰不会落在同一天。对于每个人,我们想知道何时三个高峰落在同一天。对于每个周期,我们会给出从当前年份的第一天开始,到出现高峰的天数(不一定是第一次高峰出现的时间)。你的任务是给定一个从当年第一天开始数的天数,输出从给定时间开始(不包括给定时间)下一次三个高峰落在同一天的时间(距给定时间的天数)。例如:给定时间为10,下次出现三个高峰同天的时间是12,则输出2(注意这里不是3)-poj 1006 menstrual cycles Description 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
Platform: |
Size: 1024 |
Author: 宇文霏 |
Hits: