in many problem solving and in contests as i face the problem of time of limit exceed very much, even in the today's contest. To the gr8 programmers my question is, what steps did u take at first when u r facing a time limit exceed at first?
May be solution is changing the algorithm...but it is not possible always to rethink the problem again...so what optimization steps u take at first when getting an time limit exceed...
plz help me...it is too much frustrating for me.....

thanx in advance