AlimA's blog

By AlimA, 12 years ago, In English

Hi all.

I tried to solve problem #304 of acm.sgu.ru using dp. But my code got runtime error on test 9. I found what the mistake was, but I could not fix it.

Can anyone help me? I have explained completely in the code what the problem is.

This is my code : CODE

thanks :)

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

»
12 years ago, # |
  Vote: I like it +5 Vote: I do not like it

hi my friend this is my accepted code maybe this could help you. :)

  • »
    »
    12 years ago, # ^ |
      Vote: I like it +5 Vote: I do not like it

    Dear friend, thank you very much. :)