用等差数列求和公式计算,将问题转换为求取初值,数组范围为2到sqrt(2*sum) class Solution {public: vector<vector<int> > FindContinuousSequence(int sum) {</int> vector<vector<int>> res; if (sum <= 0) return res; int n = sqrt(2*sum); int ao; double ao_o; for ( ; n&...