递增序列那道什么思路? const find = (a, target) => { const p = Math.floor(Math.log2(target / a)) + 1 return [a * Math.pow(2, p), p]; }; const solve = (arr) => { let ans = 0; for (let i = 1; i < arr.length; ++i) { if (arr[i] <= arr[i - 1]) { let [num, p] = find(arr[i], arr[i - 1]...