This problem is in Contest(s) below:
Contest 1415:stl入门
Contest 1238:Stl入门
Contest 1520:stl入门