13745 with dp - time limit exceeded