You will list the days of fever of a patient with malaria. Then you count the infected red cells in a simple model. Last, you find how many cycles are needed to reach a given number of cells.
The idea. In the model, every infected red cell releases 16 merozoites at a burst, and each merozoite infects a new red cell.
Your tasks.
fever_days. It gives the list of days from the first fever to the last day.infected_cells. It gives the infected cells after some cycles.cycles_needed. It gives the smallest number of cycles after which at least target red cells are infected, with 16 merozoites from each cell.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…