This problem is in Contest(s) below:
Contest 1382:【银实小】02 C++基础练习