Help Needed in a DP problem

Правка en1, от Satwik_Mishra1, 2021-08-26 17:01:19

My code for the problem https://codeforces.net/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.net/contest/682/submission/127054863

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Satwik_Mishra1 2021-08-26 17:01:19 330 Initial revision (published)