Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

ooscode's blog

By ooscode, history, 4 years ago, In English

Hello :) I use dp for solve problem d in Educational Codeforces Round 144 (Rated for Div. 2) But it works wrong. why? Submition link : 195450167

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

»
4 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

You need to remember that there is a constraint on the positions having -x's as well.