How can I solve this teaching problem in Python

Viewed 28

Suppose that, at some point in history, the Administrative Department National Statistics Office (DANE) will have the daily record of the average number of births from the beginning of the year to each date. Although at first glance it seems like a good way to store information, each time you need to know the exact number of births on a specific day, some unlucky employee had to start doing accounts to meet her. Would you help DANE by making a program so that, given these daily values ​​of the averages show the daily number of births? Thus, for example, if the average number of births for the five first days of the year was: 10, 12, 12, 13, and 12.6 was because the daily amount of births for those dates was 10, 14, 12, 16 and 11. entry The input begins with a line containing an integer value N that corresponds to the number of days for which records are kept (always start on January 1 and will not be more than 365). Then follow N lines with each of the daily averages. These values ​​are guaranteed to be such that the daily number of births is integer values. exit The output contains N lines with positive integer values ​​corresponding to the daily number of births. input example 6, 20.0, 21.5, 21.0, 21.75, 22.4, 22.5 ouput 20 23 20 24 25 23

0 Answers
Related