Codeforces-solutions/2018 Chinese Multi-University Training, BeihangU Contest