alyosha's blog

By alyosha, history, 10 months ago, In English

https://codeforces.me/contest/2154/submission/345771218, this is my solution of the problem. I am not sure why it's failing I am using the exact same idea as in editorial. It's giving TLE due to some implementation error. Can you someone please correct. Any input is welcome. I have tried to comment the code a bit to make the parts of it understandable. Please ask for any clarification if needed. Thanks

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