This is my solution of the CodinGame challenge Temperatures: http://www.codingame.com/ide/694536e6ec17d4d636189aa69bf3c6a07aa58d