Type: Default 1000ms 256MiB

昆虫繁殖

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

【题目描述】

科学家在热带森林中发现了一种特殊的昆虫,这种昆虫的繁殖能力很强。每对成虫过x个月产y对卵,每对卵要过两个月长成成虫。假设每个成虫不死,第一个月只有一对成虫,且卵长成成虫后的第一个月不产卵(过x个月产卵),问过z个月以后,共有成虫多少对?0≤x≤20,1≤y≤20,X≤z≤50。

【输入格式】

x,y,z的数值。

【输出格式】

过z个月以后,共有成虫对数。

【样例数据】

1 2 8
37

算法系列之递推专题

Not Claimed
Status
Done
Problem
12
Open Since
2025-11-9 0:00
Deadline
2025-11-18 23:59
Extension
0 hour(s)