题目如下:
有一种生物叫jackalope,它们每一代都以3%的成长速度增长,又以1%速度死亡.例如,原本有132个jackalope的,1代之后,3个增长了(132 * 0.03 = 3.96, 约成3个,因为是生物,不能多,只能少),然后总数1%死亡,就是剩下134个,以后每一代如此类推.
问user开始有多少jackalope, 要看多少代, 目标总数.
规格如下:
How many jackalopes do you have? 200
How many generations do you want to wait? 1
What is your target population? 205
If you start with 200 jackalopes and wait 1 generations,
you'll end up with a total of 204 of them.
If you start with 200 jackalopes, it will take 2 generations
to reach a population of 205