1955D — Sliding Window?

Revision en4, by sekiro1, 2024-04-11 16:52:02

I tried this problem using sliding window approach. But I couldn't find where i am wrong. I got WA at test case 2 . Is this approach right?

https://codeforces.com/contest/1955/submission/256120722

Any suggestions would be helpful! Thank you

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English sekiro1 2024-04-11 16:52:02 27 Tiny change: '/256120722[Your text to link here...]\n\nAny su' -> '/256120722\n\nAny su'
en3 English sekiro1 2024-04-11 16:51:42 809
en2 English sekiro1 2024-04-11 16:50:44 16
en1 English sekiro1 2024-04-11 16:50:05 994 Initial revision (published)