一个程序设计问题,英文的,理解是主要的,帮个忙吧

来源:百度知道 编辑:UC知道 时间:2024/06/20 07:15:59
Description

The Antique Comedians of Malidinesia play an interesting comedy where many animals occur. Because they want their plays to be as true as possible, a specialist studies the behaviour of various animals. Recently, he is interested in a binary dynamic ecological system hares-foxes (SHF). As a part of this project, you are asked to design and implement intelligent automatic target evaluation simulator (IATES) for this system. The behaviour of the SHF follows so called standard model, described by the following set of difference equations.
hy+1 = a.hy - b.fy
fy+1 = c.fy + d.hy
where hy resp. fy represent the difference of the number of hares resp. foxes in year y and the reference count determined at the beginning of the experiment. The units of hy and fy are unknown. Therefore, hy and fy are to be treated as real numbers. Your task is to write a program to determine the long term evolution of SHF.

Input

The input consists of

大意是这样的

一个项目要研究野兔(hare)和狐狸(fox)的生存情况,要求编一个程序来分析他们的数量给出以下公式:
hy+1 = a.hy - b.fy
fy+1 = c.fy + d.hy
其中,hy 和 fy 分别代表 野兔和狐狸的在'y'年的数目, a,b,c,d都为计数参数。程序要求你确定这两种动物的长期演化。
---------------------------------------------------------
要求的输入为
第一排:N (N为案例的个数)

若N为2,则有两个案例

下面是每个案例的格式:
N1:
第一排:a,b (a,b中间要求有空格)
第二排:c,d (c,d中间要求有空格)
第三排:h1998,f1998 (1998年野兔和狐狸的个数,两数中间要求又空格)

N2:
第一排:a,b (a,b中间要求有空格)
第二排:c,d (c,d中间要求有空格)
第三排:h1998,f1998 (1998年野兔和狐狸的个数,两数中间要求又空格)

---------------------------------------------------------
要求的输出为

1)'Ecological balance will develop.'
野兔和狐狸数目将会平衡 (如果过了一段时间以后 lim hy=lim fy=0)

2)'Hares will die out while foxes will overgrow.'
野兔将会灭绝,狐狸数量生长过度 (如果过了一段时间以后,lim hy =负无穷,且lim fy=正无穷)

3)'Hares will overgrow while foxes will die out.'
野兔数量生长过度,狐狸将会灭绝 (如果过了一段时间以后,