Please read the new rule regarding the restriction on the use of AI tools. ×

srikanth15458's blog

By srikanth15458, 6 hours ago, In English

In yesterday's contest Codeforces Round 973 (Div. 2), I used "\n" to output a newline after outputting queries in problem C 2013C - Password Cracking, but I ended up getting Idleness limit exceeded verdict multiple times. I couldn't figure out the mistake in my code and tried solving it in various ways, but the verdict remained the same each time, likely because I was consistently using "\n".

Later, after the contest ended, I discovered that simply changing "\n" to endl allowed my solution to be accepted. However, the same code worked fine on my laptop in VS Code without any issues, even when I was using "\n". This made me wonder if the issue was on Codeforces' end.

Did anyone else face the same issue, or was it just me? I wonder how C language users solved this problem.

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

»
5 hours ago, # |
  Vote: I like it 0 Vote: I do not like it
  • »
    »
    5 hours ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Oh thanks