Help with understanding the editorial
Difference between en1 and en2, changed 18 character(s)
For problem [this](https://mirror.codeforces.com/problemset/problem/1334/C), the editorial suggests a naive way in which we break the chain and linearly kill all the monsters(then they present an optimization based on this), how do we know that this is the optimal way? Why can't I first kill monsters from one segment and then once the cascading effect stops, I jump to another monster which(say) has the highest b[i]/a[i] ratio? I need help in understanding this.↵
Thanks in advance.↵
(You can ask for further clarification from me if required)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Flvx 2023-01-28 17:45:43 18
en1 English Flvx 2023-01-28 17:45:24 558 Initial revision (published)