and a positive integerS(S< 100 000 000)are given. Write a program to find the minimal length of the subsequence of consecutive elements of the sequence, the sum of which is greater than or equal toS.
例4.10:理由:5n^2 + 3nlogn+ 2n + 5 <= (5+3+2+5)n^2 = cn^2 , for c=15例4.11:理由:20n^3 + 10nlogn+ 5 <= 35n^3 , for n greater than or equal 浏览2提问于2015-05-22得票数2 回答已采纳 扫码 添加站长 进交流群
and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal length of the subsequence of consecutive elements of the sequence, the sum of which is greater than or equal to S.