rmz's blog

By rmz, history, 3 hours ago, In English

After staring at my code for nearly 1 hour, and even comparing my code to someone's else i still couldn't know why my code gives wrong answer for some testcases, is it the way I'm taking the mod ?

UPD: Its actually 2 hours

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

»
3 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by rmz (previous revision, new revision, compare).

»
2 hours ago, # |
Rev. 3   Vote: I like it +1 Vote: I do not like it

See this

You were not initializing the dp array properly on line 62