Responsive image

问题 H: Biorhythms

问题 H: Biorhythms

时间限制: 1 Sec  内存限制: 128 MB
提交: 31  解决: 15
[提交][状态][讨论版][命题人:]

题目描述

输入描述

输出描述

样例输入

0 0 0 0
0 0 0 100
5 20 34 325
4 5 6 7
283 102 23 320
203 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.
[提交][状态]
ACM算法攻关部