How to solve this problem of CEOI Mirror 2020?

Revision en1, by Rock2000, 2020-10-16 16:51:21

Can someone please tell me how to solve this problem? I saw the editorial but couldn't understand how to solve the subtask 7. Thanks in advance.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Rock2000 2020-10-16 16:51:21 239 Initial revision (published)