CodingBlood's blog

By CodingBlood, history, 6 years 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

| Write comment?
»
6 years ago, hide # |
← Rev. 2  
Vote: I like it +1 Vote: I do not like it

initialize score=0;

»
6 years ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

delete getch()

  • »
    »
    6 years ago, hide # ^ |
     
    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();?

    • »
      »
      »
      6 years ago, hide # ^ |
       
      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

»
6 years ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

me during lockdown: Idleness limit exceeded on test 1