vish11's blog

By vish11, history, 6 weeks ago, In English

I am getting Idleness limit exceeded on test 18. 115473512 Please help .. Thanks in advance

 
 
 
 
  • Vote: I like it
  • -17
  • Vote: I do not like it

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

Do you need the answer or just asking for what ILE is?

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

Your code is not answering for one of the queries as a result the interactor keeps waiting for it thus resulting in idleness limit.

  • »
    »
    6 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    how can I rectify it? Any idea ?

    • »
      »
      »
      6 weeks ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      well check your code as to why it's not outputting the answer I guess..

      By the way the problem is taking one query input and then it's waiting for one answer and then next query and so on incase you were not aware.

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

It's this:

ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);

Remove that. It unties cin and cout, so it basically tries to get all input and then prints all output. This doesn't work on interactive problems, because this way isn't interactive in the slightest.

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

I just changed the block size to be 8 . Got an AC. Thank you guys. you helped a lot.