Painter problem. 2nd and 3rd test cases are failing

hello @Sharleen-Clement-3051084341644767
use long long in place of int and then try

1 Like

Yeah, it’s working. Thank you!