昆虫繁殖
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.
Description
科学家在热带森林中发现了一种特殊的昆虫,这种昆虫的繁殖能力很强。每对成虫过x个月产y对卵,每对卵要过两个月长成成虫。假设每个成虫不死,第一个月只有一对成虫,且卵长成成虫后的第一个月不产卵(过X个月产卵),问过Z个月以后,共有成虫多少对?0≤X≤20,1≤Y≤20,X≤Z≤50。
Input Format
x,y,z的数值。
Output Format
过Z个月以后,共有成虫对数。
1 2 8
37
2026-4-26递推练习
- Status
- Done
- Rule
- XCPC
- Problem
- 9
- Start at
- 2026-4-26 13:30
- End at
- 2026-4-26 16:30
- Duration
- 3 hour(s)
- Host
- Partic.
- 8