Thank you for participating in the contest! I hope you enjoyed the tasks. Here is an editorial with hints.
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!