| UTPC Contest 02-10-23 Div. 2 (Beginner) |
|---|
| Закончено |
Chelsea and Charlie love rainy days. When it's pouring outside, they get to wear their flannel pajamas all day and do some of their favorite activities – playing with teddy bears, making (and eating) cream cheese brownies, and more.
Chelsea and Charlie want to know what the weather forecast is for the month of February, so that they can plan ahead for rainy days. Let's assume it is not a leap year, so there are 28 days in February. You will be given 28 decimal values representing the probability of rain on each day of February, in order. Chelsea and Charlie will consider a day rainy if the probability of rain is greater than or equal to 0.8. How many rainy days are there?
The first and only line will contain 28 decimal values $$$a_1,...,a_{28}$$$ where the $$$a_i$$$th value represents the probability of rain on the $$$i$$$th day. ($$$0 \le a_i \le 1$$$)
Output a single integer, the number of days that are rainy ($$$a_i \ge 0.8$$$) in February.
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0.25 0.22 0.64 0.43 0 0.99 0.87 0.28 0.83 0.77 0.92 0.45 0.60 0.887 0.935 0.353 0.182
9
| Название |
|---|


