Preparing NOJ

# 生理周期

1000ms 10000K

## Output:

Case 1: the next triple peak occurs in 1234 days.

## Sample Input:

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

## Sample Output:

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.

Info

Provider POJ

Code POJ1006

Tags

Submitted 35

Passed 15

AC Rate 42.86%

Date 07/22/2019 17:04:23

Related

Nothing Yet