caravin's blog

By caravin, history, 4 years ago, In English

My submission https://codeforces.com/contest/1363/submission/82155170 is getting Idleness limit error. I printed new line, and flushed the output. Still I can't understand why it is giving an error.

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

»
4 years ago, # |
  Vote: I like it +3 Vote: I do not like it
cout<<(e-mid+1)<<" ";
for(ll i=s;i<=mid;i++)cout<<i<<" ";

It should be cout<<mid-s+1<<" " imo

  • »
    »
    4 years ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    Yeah I missed that. Thanks for finding it. BTW, Now it is giving memory exceeded error. I am only using O(n) arrays. Any idea why it is happening?