This is a winning code for a bot's speed calculating competition.