Tom Gets Home Game

When will Tom get home today?

Tom works in the city of Beijing. He goes to work on weekdays, and enjoyes other activities on weekends. Try to predict the time he gets back home everyday by learning the pattern of his life.

How to play

If you are new to the game, you need first generate a game session key, save it for later use. If you already have a key, you can continue predictions with that key.

Enter a time in HH:MM format and begin your predictions. Each game lasts for 6000 game-days at most. You can try to automate the prediction process by using your favorite scripting tools.

After you finish, submit your (best) game session key to our HR staff.

This problem shouldn't take you longer than 2 hours. If you found yourself swamped for more than 2 hours, you probably should give up.

Scores

The score of each prediction is calculated based on the accuracy of it.

If prediction_time <= actual_time (you predict earlier than the actual time he gets home):

score = 40 - (actual_time - prediction_time)

Otherwise:

score = 10 / (prediction_time - actual_time)

Score is floored to an integer; the minimum score is 1.

The total score is calculated as the sum of your last 1000 predictions. That's why you don't have to finish all 6000 days of a game. The higher total score you get, the better.

Hints

Let’s begin

Input your game session key: Or

When will Tom get home today?