正文
增加 2 行删除 2 行
256 行未改动全部展开257258259260261262263264265266267149 行未改动全部展开256 行未改动全部展开}int _l = l,res = tmp;while(_l>q[i].l){_l--;if(!mx[a[_l]]) mx[a[_l]] = _l;else res = max(res,mx[a[_l]]-_l);}ans[q[i].id] = res;while(_l<l){149 行未改动全部展开256 行未改动全部展开257258259260261262263264265266267149 行未改动全部展开256 行未改动全部展开}int _l = l,res = tmp;while(_l>q[i].l){_l--;if(!mx[a[_l]]) mx[a[_l]] = _l;else res = max(res,mx[a[_l]]-_l);}ans[q[i].id] = res;while(_l<l){149 行未改动全部展开