MASTERASSASSIN's blog

By MASTERASSASSIN, history, 5 years ago, In English

Hi codeforces, i give this problem to one of my friends 1082 — Array Queries

after a while he tell me that he got RTE and ask me why..i look at the code and it was as same as my code except one thing..he use fastIO with cin cout...but i use scanf and printf..i change his code to use scanf printf and submit it..i got AC anyone know why this is happen..

this is the RTE code https://ideone.com/lGSRDC

and this is the AC code https://ideone.com/syamOk

thanks in advance.

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

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

Same thing happened to me yesterday in problem "Light Oj 1232".After changing cin to scanf my solution has been accepted.Is that not about TLE?I wonder too if someone can explain :)

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

Submit the same TLE solution in Vjudge. It will get AC. Some weird problem in LightOJ regarding FastIO.