I solved it using a dp approach — https://codeforces.com/contest/2178/submission/355396319 and like I said if a problem can be solved using dp then AI easily cracks it because essentially it becomes an optimization problem which is fundamentally how machine learning and AI models work.
I solved it using a dp approach — https://codeforces.com/contest/2178/submission/355396319 and like I said if a problem can be solved using dp then AI easily cracks it because essentially it becomes an optimization problem which is fundamentally how machine learning and AI models work.