UVa Problem 11951 — Area doubt

Revision en1, by codeforces2k19, 2019-05-30 12:41:30

Hello,can any one tell me where I am doing wrong in my code to solve the problem:

https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=650&page=show_problem&problem=3102

CODE:

https://rextester.com/QHGO40661

My code is failing 2 of the 53 test cases.

Tags dp, area

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English codeforces2k19 2019-05-30 12:41:30 320 Initial revision (published)