Time limit problem 10324
Problem 10324 accepted
Failure on try to improve the speed :P