This problem is in Contest(s) below:
Contest 1229:【课堂练习】时间复杂度(物联网22-1/2)