This problem is in Contest(s) below:
Contest 1238:Stl入门
Contest 1143:NOIP2017重现
Contest 1448:11,12月初一训练