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.
1474A - Puzzle From the Future
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
Solution
Bonus
Editorial
Solution
Good luck in your future contests!