ssum_way's blog

By ssum_way, history, 6 years ago, In English

Hello,

I am just asking if for some hard problems you take the time to create a program which can output the correct solution for any small input, though it will TLE if you submit it. Maybe it takes long to code, but it will help you in the long run?

  • Vote: I like it
  • +8
  • Vote: I do not like it

»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Well not always but maybe it can help in some cases.. Consider the fourth question of www.codechef.com/TSTIND17 . Initially i was not sure of the solution and wrote one that was definitely going to get a TLE just to have a little confidence. As expected I got a tle initially and then I applied BIT for queries and the same concept of TLE, I got an AC.

But in certain cases you may have to change your approach totally to a new one!