Can you help me find the solution to the Russian Olympiad in Informatics (2016) question?

Revision en1, by matrix191943, 2024-08-10 09:40:28

You can watch the questions here.It was one of the questions in our school question bank and I tried to solve it, but unluckily that I didn't know how. Can you help me find the official solution to this problem (or this contest)? Thank you!

Sorry, my English isn't very good.:<

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English matrix191943 2024-08-10 09:40:28 410 Initial revision (published)