rsschool-cv

CV

Azamat Firidonov


Contacts


Skills


Code Example

DESCRIPTION:
You are the greatest chef on earth. No one boils eggs like you! Your restaurant is always full of guests, who love your boiled eggs. But when there is a greater order of boiled eggs, you need some time, because you have only one pot for your job. How much time do you need?

Your Task
Implement a function, which takes a non-negative integer, representing the number of eggs to boil. It must return the time in minutes (integer), which it takes to have all the eggs boiled.

Rules

import math
def cooking_time(eggs):
    division = eggs / 8
    integer_division = eggs // 8
    if division == 0:
        return 0
    if division < 1:
        return 5
    elif eggs % 8 == 0:
        return integer_division * 5
    else:
        return math.floor(division) * 5 + 5

Education


Languages


About me

I have been seeking myself for a long time. One day I’ll become blockchain developer. I believe it.


My slogan

Movement is life