openjudge 放苹果如何用pascal求解,请大神知道我的错误,总是 Runtime Error 5
varT,m,n,i,j:integer;functionf(x,y:integer):integer;beginif(x=0)or(y=1)thenf:=1;if(y>...
var T,m,n,i,j:integer;
function f(x,y:integer):integer;
begin
if (x=0) or (y=1 ) then
f:=1;
if (y>x) then
f:=f(x,x)
else
f:= f(x,y-1)+f(x-y,y);
end;
BEGIN
Read(T);
for i:=1 to t do
Begin
Read(m,n);
j:=f(m,n);
writeln(j);
end;
END.
答案已解
program exam1_1;
var T,m,n,i:integer;
function f(x,y:integer):integer;
begin
if (x=0) or (y=1 ) then
f:=1
else if (y>x) then
f:=f(x,x)
else
f:= f(x,y-1)+f(x-y,y);
end;
BEGIN
Read(T);
For i:=1 to T do
Begin
Read(m,n);
writeln(f(m,n));
end;
END. 展开
function f(x,y:integer):integer;
begin
if (x=0) or (y=1 ) then
f:=1;
if (y>x) then
f:=f(x,x)
else
f:= f(x,y-1)+f(x-y,y);
end;
BEGIN
Read(T);
for i:=1 to t do
Begin
Read(m,n);
j:=f(m,n);
writeln(j);
end;
END.
答案已解
program exam1_1;
var T,m,n,i:integer;
function f(x,y:integer):integer;
begin
if (x=0) or (y=1 ) then
f:=1
else if (y>x) then
f:=f(x,x)
else
f:= f(x,y-1)+f(x-y,y);
end;
BEGIN
Read(T);
For i:=1 to T do
Begin
Read(m,n);
writeln(f(m,n));
end;
END. 展开
2个回答
2016-03-08
展开全部
佩觉得小米不黑也没办法。其他的产品综合又不如小米强。比如华为,图形处理残缺,然后除了六寸大砖头[图片]
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2016-03-08
展开全部
去威锋问问呢
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询