Biorhythms

查看题解 查看答案
题目描述
Time Limit: 1000 ms
Memory Limit: 256 mb

请先登录再刷题,不会做的题目右上可以查看题解和答案~

输入输出格式
输入描述:
You will be given a number of cases. The input for each case consists of one line of four integers p, e, i, and d. The values p, e, and i are the number of days from the beginning of the current year at which the physical, emotional, and intellectual cycles peak, respectively. The value d is the given date and may be smaller than any of p, e, or i. All values are non-negative and at most 365, and you may assume that a triple peak will occur within 21252 days of the given date.
输出描述:
Case: the next triple peak occurs in 1234 days.
    Use the plural form "days'' even if the answer is 1.
输入输出样例
输入样例#:
0 0 0 0
输出样例#:
复制
Case: the next triple peak occurs in 21252 days.
题目来源
北京大学上机题
重置

提交代码后在此处可查看状态