Fenwick Tree solution for 2158.Amount of New Area Painted Each Day?

Does this problem have a Fenwick tree solution? Sorry, I don't have premium and can not see all the discussions.

Thanks.

Comments (0)