This problem is in Contest(s) below:
Contest 1186:小朋友来阿克树分治
Contest 1235:小朋友来阿克树分治