parinda's blog

By parinda, history, 4 weeks ago, In English,

I've tried submitting a solution to problem 158A------>86259839 But I get Idleness limit exceeded on test 1, I tested my code using Custom Test, but it seems to be working Ok, how can I fix this?

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

»
4 weeks ago, # |
Rev. 2   Vote: I like it +1 Vote: I do not like it

initialize score=0;

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

    86356807, still the same problem and its working perfectly on my offline IDLE

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

Initialize score to 0 Moreover your logic is also wrong

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

    86356807, still the same problem and its working perfectly on my offline IDLE.

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

      srry broo, u were right! and for unliking your comment

»
4 weeks ago, # |
  Vote: I like it +5 Vote: I do not like it

delete getch()

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

    thxxx brooo, i recently coded many of the problem and they seem to work fine offline but cant work on code forces. Now i thnk they will work too.

    But still why do need to remove getch();?

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

      because getch() is waiting, when you input some char and CodeForces thinks, that you want to input something yet. i don't advice you to use system("pause"), getch() and other commands

»
4 weeks ago, # |
  Vote: I like it +5 Vote: I do not like it

me during lockdown: Idleness limit exceeded on test 1