Getting TLE on Atcoder ABC219D Problem

Revision en1, by asawa_harsh, 2022-03-14 19:49:26

I wrote a recursive solution with O(n^3) time complexity imo.

But I am getting TLE Verdict on submission .

Problem Link

Tags atcoder beginner, dp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English asawa_harsh 2022-03-14 19:49:26 277 Initial revision (published)