This problem is in Contest(s) below:
Contest 1043:C++L2阶段作业