Can someone help me with this problem?

Revision en4, by atkiya, 2023-08-17 14:13:59

I'm getting TLE for my solution of this 616D - Longest k-Good Segment problem and here's my solution link: https://ideone.com/fork/mFxA7g How can I fix this? Also, here's my submission link: 219228830

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English atkiya 2023-08-17 14:13:59 56 Tiny change: ' fix this?' -> ' fix this? Also, here's my submission link: [submission:219228830]'
en3 English atkiya 2023-08-17 14:09:23 21 Tiny change: 'rk/mFxA7g ' -> 'rk/mFxA7g \nHow can I fix this?'
en2 English atkiya 2023-08-17 14:08:49 15 Tiny change: 'lution of [this] problem ' -> 'lution of this [problem:616D] problem '
en1 English atkiya 2023-08-17 14:07:57 148 Initial revision (published)