This problem is in Contest(s) below:
Contest 1172:入门测试2
Contest 1207:入门班测试1