A single cell is put in fresh food. It divides by binary fission every minutes, and every daughter cell does the same. You will list the number of cells after each hour, find when the culture first has more than cells, and compare two times.
The idea. In hours there are divisions, and each division doubles the cells, so there are to the power of that number.
Your tasks.
cells to the number of cells after each hour in hours.first_over to the first hour at which there are more than cells.ratio to how many times more cells there are after hours than after hours.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…