Can anyone tell me is this a dp Problem or any other and please explain me the approch.
https://www.codechef.com/SEPT19B/problems/CHEFINSQ
Can anyone tell me is this a dp Problem or any other and please explain me the approch.
https://www.codechef.com/SEPT19B/problems/CHEFINSQ