p.abhishek's blog

By p.abhishek, history, 4 years ago, In English

My solution giving tle at test case 9, i don,t know why this happening 1423K - Lonely Numbers

my solution

plz help

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

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

This happened to me in the contest: my accepted solution and my multiple rejected solutions differed only in the fact that I used a Fast IO configuration in the accepted solution. I suspect this is your problem. The input size (10^6) makes this a danger.

It was hugely frustrating for me at the time, especially as it was during the contest, but I suppose understanding the need with Fast IO is part of competitive programming.