Painter Problem(all test case not cleared)

https://ide.codingblocks.com/s/61881

Hi Shubham, just change the data types from int to long long int. The logic is correct.
I’ve made the changes and you can refer to the code here: https://ide.codingblocks.com/s/61899