Need of Editorials of Quark-Codejam

Please Post Editorials of the following questions
1.Accommodation (QCJ02) link: https://www.codechef.com/QUCJ2019/problems/QCJ02
2.Advertisements(QCJ05) link: https://www.codechef.com/QUCJ2019/problems/QCJ05