Alireza_OLY's blog

By Alireza_OLY, history, 6 weeks ago, In English

I submitted this recently and found out the algorithm is incorrect, but surprisingly, it got accepted! https://codeforces.com/contest/22/submission/253924838 This submission won't work for the following test: 5 7 11100000 11100000 00000000 00000000 11100000 11100000

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By Alireza_OLY, history, 2 months ago, In English

Hello guys I am stuck in solving the problem of "E-singer's tour". I am solving it using O(n) but I have no idea why it gets me a TLE error. Even though getting the input is O(n) and my code is O(n). I have no idea how to solve this problem. I even don't find any other way. my submission: https://codeforces.com/contest/1618/submission/249522519 my other submission that might have more optimization:https://codeforces.com/contest/1618/submission/249523839

Full text and comments »

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

By Alireza_OLY, history, 5 months ago, In English

Hello code forces, this is my first blog entry as a newbie and I hope it'll be answered (I don't become surprised if nobody answers me! the problem I have is a misjudging happening in my code's judging. I noticed while reading the first test cases that my code returns something else that what is written there as "output", I mean when I give the very same test to console it returns the right answer nevertheless it shows my code outputs something else. if needed https://codeforces.com/contest/1894/submission/237543088 Sub no.237543088 who should I go to?

Full text and comments »

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