DecodeX's blog

By DecodeX, history, 19 hours ago, In English

Hey thanks for helping me , I am not getting why this code not getting accepted like there are just three cases and it is failing at 2071 test case {compiler message -> wrong answer 2071st numbers differ — expected: '45', found: '46'}

Please help me this are my submission and below is question link, 307205360,307211125

problem -> 2005B1 - The Strict Teacher (Easy Version)

Full text and comments »

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

By DecodeX, history, 2 days ago, In English

Hey Codeforces community,

I'm currently trying to solve problem 2069C from a recent Codeforces round and am exploring a dynamic programming approach for it. However, I'm struggling to implement it efficiently.

Here's what I have understood so far: Problem link -> 2069C - Beautiful Sequence A brute force solution seems infeasible due to [mention constraints]. I believe DP can be applied by but i am new to dp , so i am not getting how to think help

Full text and comments »

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