This problem is in Contest(s) below:
Contest 1175:0605练习
Contest 1244:nhoipj2016练习