This problem is in Contest(s) below:
Contest 1023:输入输出流