Блог пользователя bigdamdam

Автор bigdamdam, история, 14 часов назад, По-английски

Hey guys , can someone tell me why my submission keeps getting idleness limit exceed, and what does it exactly mean, i did not find much of material about this.

https://codeforces.net/contest/2001/submission/307267974

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится

»
13 часов назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

use stdout.flush or something like that after taking inputs it should solve it. It's usually due to this only!

  • »
    »
    13 часов назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    i did , but i keep getting the same message

    • »
      »
      »
      13 часов назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      you should add it after print obviously

      • »
        »
        »
        »
        13 часов назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

        I did it after print, after input and still getting the same message

»
13 часов назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Actually your logic has issues i believe as i am personally not comfortable with py py so i had it converted to c++ using o3. So you're asking too many inputs i believe the rest part is ok, maybe try a different logic cause your code is asking more inputs then problem statement allows you! you can take reference of the editorial or my solution https://codeforces.net/contest/2001/submission/277395284