Comments

Same with me. In final testing my solution for G gave tle on test 1 which was accepted at the time of contest. Please help:

i wasted a lot of time in B then implemented using dp approach.it was so simple with dp;

One of the best contest.