Help in understanding editorial of 1941 Problem G

Revision en1, by the_coder_8297, 2024-03-13 16:41:19

I didn't understand the editorial of the question.

https://codeforces.net/contest/1941/problem/G

Can anyone help me to get an idea of the solution, and why they are using these techniques to get the solution? How by using this we are getting the required answer.

Tags help, editorial

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English the_coder_8297 2024-03-13 16:41:19 318 Initial revision (published)