πŸ‡¬πŸ‡§ The problem about sanitizers

πŸ‡¬πŸ‡§ The problem about sanitizers

PROGRAMIT

A family lives in an apartment. Self-isolation here, everything is done, everyone goes crazy in their own way.

My mother has an idea: every two days, all the walls of the apartment are treated with sanitizer. Clean spray everything.


The height of the ceilings in the apartment is 2.5 meters, and the total perimeter of the walls is 50 meters. One bottle of sanitizer is needed to treat 5 square meters. There are three people in the family. The pharmacy does not issue more than four vials per person per day.Β 

Will this family work or is the idea clearly impossible?


Solution

Due to the accumulation of numbers and conditions, the task may seem complicated, but in fact everything is simple. To make it easier, let's write all the data in a column, like at school:


β€’ Ceiling height: 2.5 meters

β€’ Perimeter: 50 meters

β€’ 1 sanitizer per 5 m^2

β€’ in a family of 3 people

β€’ no more than 4 sanitizers per day per code

β€’ processing is required once every 2 days


Now the algorithm is as follows:

  1. We find the area of the walls
  2. We count how many sanitizers are needed for a full treatment
  3. We count how many sanitizers the family can buy in 2 days
  4. See if there are enough purchased for full processing

Wall area. Multiply the perimeter by the height of the ceiling: 50 β€’ 2.5 = 125 m^2

Number of sanitizers for processing. We need to divide the total area of the walls into 5 m^2 - this much can be treated with one sanitizer: 125 m^2 / 5 m^2 = 25 pieces.

Total purchases in two days. If each family member goes to the pharmacy every day for sanitizer and buys a maximum of 4 bottles per day, then in just two days they will have the following:


3 family members β€’ 4 sanitizers each β€’ 2 days full processing period = 24 sanitizers.


Let's see if the arithmetic converges or not. For every two days, the family will buy only 24 sanitizers, and the mother needs 25 to completely finish the apartment. It turns out that if mom does not have other funds in reserve, then the idea is not only stupid, but also not feasible.


Also, the mother does not have any sanitizers left to treat herself, her husband, the child, and the sanitizers she brought from the street.


πŸ§‘β€πŸ’»PROGRAMIT

Report Page