OrionJaman's blog

By OrionJaman, history, 4 weeks ago, In English

here is the problem link: Frog 2 problem:

wrong answer given solution

accepted solution

I have only changed the vector dp size from N=1e5+10 to INT_MAX and got accepted..why was it wrong answer in size change of dp size?

Full text and comments »

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

By OrionJaman, history, 4 weeks ago, In English

Hi! I am new in programming.I have started solving problems since November 2023 with my full effort.I have recently learned STL and binary search..Now trying to learn dynamic programming.I have solved some basic problems like coin change problems.But when I read new dp or binary search problem on codeforces ,I can not make the sense of implementing dp or binary search on that definite problem...any suggestion will be eagerly accepted.

Full text and comments »

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