Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

Help Needed in a DP problem

Revision en1, by Satwik_Mishra1, 2021-08-26 17:01:19

My code for the problem https://codeforces.com/problemset/problem/682/D gets a TLE, Please can someone help me in figuring it out the reason? Genrally solutions involve 4D DP but I tried solving it using 3D DP. Thanks in advance. Link to my code- https://codeforces.com/contest/682/submission/127054863

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Satwik_Mishra1 2021-08-26 17:01:19 330 Initial revision (published)