Thank you for participating in the contest! I hope you enjoyed the tasks. Here is an editorial with hints. I will upload solutions in C++ later.
Hint $$$1$$$
Hint $$$2$$$
Editorial
Solution
Hint $$$1$$$
Hint $$$2$$$
Hint $$$3$$$
Editorial
Solution
Hint $$$1$$$
Hint $$$2$$$
Hint $$$3$$$
Hint $$$4$$$
Editorial
Solution
Hint $$$1$$$
Hint $$$2$$$
Hint $$$3$$$
Hint $$$4$$$
Editorial
Solution
Hint $$$1$$$
Hint $$$2$$$
Hint $$$3$$$
Hint $$$4$$$
Editorial
Tutorial is loading...
Solution
Bonus
Editorial
Solution
Good luck in your future contests!