-->
当前位置:首页 > 题库

PROGRAMMING:SMS billing

Luz5年前 (2021-05-10)题库368
###Task description
```
For sending short messages by mobile phone, the charge for a short message is 0.1 yuan, but the content of a short message is limited to 70 words (including 70 words). If you send more than 70 words at a time, it will be divided into multiple messages according to the limit of one message per 70 words. Suppose you already know the number of words you sent in that month, try to count the total charge of your SMS in that month.
```
###Input format:
```
The first line is the integer n, which represents the total number of times to send SMS in the current month, and the next line is an integer in each line, which represents the number of words in each SMS.
```
###Output format:
```
Output a line, total SMS charges of the month, unit: yuan, accurate to 1 decimal place.
```
###Input example:
```in
ten
thirty-nine
forty-nine
forty-two
sixty-one
forty-four
one hundred and forty-seven
forty-two
seventy-two
thirty-five
forty-six
```
###Output example:
```out
one point three
```
###Title Source
This topic is selected from openjudge website http://noi.openjudge.cn/ch0112/02/







answer:If there is no answer, please comment