[D. Serega and Fun] Need Help

Revision en5, by kinitic013, 2025-01-31 20:28:40

I recently read this blog and tried to implement this data structure in problem 455D - Serega and Fun mentioned in comments but it's getting WA and I can't seem to find any bug in my data structure implementation , I know asking you all to debug my code is not good but it's a desperate move :<(

303760090 In my implementation i havn't stored size of each block as in the problem we are swapping so there's never going to be too many or too less blocks

Spoiler Code
Tags need help, data structure

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en5 English kinitic013 2025-01-31 20:28:40 0 (published)
en4 English kinitic013 2025-01-31 20:07:57 2609
en3 English kinitic013 2025-01-31 20:03:58 8703
en2 English kinitic013 2025-01-31 20:01:21 23 Tiny change: 'move :<(\n\nIn my im' -> 'move :<(\n[submission:303760090]\nIn my im'
en1 English kinitic013 2025-01-31 20:00:18 513 Initial revision (saved to drafts)