Longest time to solve the problem