Need help on 2022C

Revision en1, by _Muhammad.Along_, 2024-12-23 13:20:44

These day im trying to improve my dp skills and then i faced this problem. I did come up with da solution and then... It bugged :(

First thought occured in mah mind was that if i was miswrite at some line... But i havent spotted it until now :|

Maybe i did not implement it in a correct algo? Or somehow mah eyes so dumb that i cant see the error... Thanks and appreciate all of your helps!

Mah submission: https://codeforces.net/contest/2022/submission/297780647 Btw this is my drawing about mah algo:

Tags dp, 2022

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English _Muhammad.Along_ 2024-12-23 13:21:10 0 (published)
en1 English _Muhammad.Along_ 2024-12-23 13:20:44 605 Initial revision (saved to drafts)