NOI 2020 Finals

NOI 2020 Final Contest. 5 problems, 5 hours, 500 points. Have fun :)