This problem is in Contest(s) below:
Contest 1163:C++编程训练60