Rt,给定一个长度为 nnn 的序列 aaa,对每个 1≤i≤n1\le i\le n1≤i≤n 求出 和最大 的长度为 iii 的区间。
有优于 n2n^2n2 的做法嘛。第一眼感觉很可做,但想了半天还是不会。