pascal 连续若干个正整数之和为1000,求有多少种这样的数列.

问题描述:

pascal 连续若干个正整数之和为1000,求有多少种这样的数列.
1个回答 分类:综合 2014-09-19

问题解答:

我来补答
const m=1000;
var tt,i,answer:integer;b:boolean;
procedure find(x:integer);
begin
inc(tt,x);//tt:=tt+x;
if (tt>m)or(b=false)then
begin
b:=false;exit;
end;
if tt
 
 
展开全文阅读
剩余:2000
下一页:例6求步骤