HELP please

Revision en1, by ultimatechodu.v1, 2025-03-20 14:03:47

Why am I getting this WA on TC2 in this 311446111 in problem 1922D - Berserk Monsters. I am simulating the number of monsters remaining after round 1, then I'm grouping the consecutive monsters together. Then I'm running a loop and taking the last monster from left group and first monster from right group and checking if it can be killed. What's wrong with this approach?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ultimatechodu.v1 2025-03-20 14:03:47 388 Initial revision (published)