Problem 3667: Hotel. Time limit exceeded on 05/08/2014.