Yandex Cup 2024 — Algorithm — Qualification

Sumerians and Aztecs. Ancient Egypt and the Han Dynasty. The Gupta Empire and the Assyrians. Throughout world history, various civilizations have set the course for the development of humanity.
The next civilization that will help the world move towards the future is... the Digital Civilization.
The Digital Civilization is a unified community of developers, analysts, and engineers.
We live in different countries and speak and write code in different languages, but a common culture and a drive to solve the challenges facing all of humanity unite us.
Rules: The qualification stage of the Algorithm track is a contest with a virtual start, consisting of 6 problems. You have 2 hours to complete the contest.
You will have only one attempt to complete the task. The timer starts the moment you click the «Start virtual competition» button. You cannot pause the task once started.
Problems have limitations on the number of solution attempts—100 attempts per problem.
Questions related to the conditions and tests of the problems should be sent directly through the testing system. We will try to answer them as soon as possible, but we do not guarantee that you will receive an answer before the allocated time for completing the task expires.
Error codes can be found in the respective section.