18DaysLeft's blog

By 18DaysLeft, history, 23 hours ago, In English

for this problem 1237B - Balanced Tunnel , This is my approach 309018105

I am starting from behind in second array and if a Car has moved backwards that is its position in coming out array is greater that coming in array then make it a victim and then for all cars coming before it check if they have crossed it until we find new victim and update it too and check for them too.

My thinking is that any car that has been overtaken will go back unless it overtakes someone else. So there is always a victim and so it should work. But it doesn't is there a case i am missing because in 4th test case i am missing the answer by big difference.

I have solved the problem with brute force but it is ugly 309016497, so was wondering why this victim approach is not working.

Full text and comments »

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

By 18DaysLeft, history, 6 days ago, In English

I was solving this rather simple question 1459B - Move and Turn but i did by making all cases till 9 and adjusting the solution by just guessing and trying if it fits. for even cases it just flashed that it is square of (n/2+1) but for odd case i took more than an hour.

After solving i went to editorial of this contest and they have done it in such a simple way, but i cannot get how one does observe the way they did and came to the solution. Any tips for such would be highly appreciated.

here is my hit and trial solution 308230915 and here is the editoria

Full text and comments »

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

By 18DaysLeft, history, 2 weeks ago, In English

I took a break from cp to learn backend dev and react and after that period now it seems like i have lost all the concentration and focus. I can't think of simple problems' solutions. I can't focus or translate my approach to code anymore. Moreover seeing my friends get back to it with no hitch has really demotivated me. What do i do?

Full text and comments »

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

By 18DaysLeft, history, 3 months ago, In English

I became pupil a few days back and now I am deathly afraid of falling down back to Newbie but at the same time I really want to give contest because i like it. How do i combat this?

Full text and comments »

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

By 18DaysLeft, history, 4 months ago, In English

I have been struggling at around problems of 1200-1300 difficulty for a month, and ever when do i get the intuition to approach the Problems it just seems like it is a fluke and not a solid logical approach. A standard approach for proofs of such to solidify my approach would be nice.

Full text and comments »

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