krishrb2517_'s blog

By krishrb2517_, history, 9 months ago, In English

https://mirror.codeforces.com/contest/1783/problem/C

This is the link of the problem

https://mirror.codeforces.com/blog/entry/111194

This is the tutorial

In the editorial for problem C , why is it written we should check

m+b[ans-1]>=a[ans]

why is it depending on a , as it is not in any ordered pair , rather isn't it much logical that we will check with b[ans] that is it possible that instead of this we can switch it up with next element possible.

If anyone can help in pointing out where I am going wrong.

Full text and comments »

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

By krishrb2517_, history, 12 months ago, In English

https://mirror.codeforces.com/contest/1906/problem/E

This is the link to the problem E of 2023-2024 ICPC, Asia Jakarta Regional Contest (Online Mirror, Unrated, ICPC Rules, Teams Preferred) , can anyone help me in understanding the intuition and logic behind the dp approach of this problem. I cannot seem to grasp the logic behind the problem.

Any suggestion/idea maybe helpful too!!

Full text and comments »

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

By krishrb2517_, history, 17 months ago, In English

Can anyone help me in figuring out the reason behind this runtime error

Here's my submission link : https://mirror.codeforces.com/contest/1850/submission/214987806

Full text and comments »

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