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 :)
hi my friend this is my accepted code maybe this could help you. :)
Dear friend, thank you very much. :)