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.
https://codeforces.net/blog/entry/43780 refer this blog
Oh thanks