ÀÂÒ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

632. Cost of the talk

Time Limit: 1 seconds
Memory Limit:1000KB
Points:2
View Problem Statistics Submit Problem added Undefined

Cost of the talk

 

Let telephone tariffs such a: first minute of the talk costs 2 rub., but each following - 1.5 rub. Define, how much costs the talk from 1,2,3...N minutes. N is entered with keyboards. If N≤0, that bring on screen message 0. 

 

Input data

The Integer number N≤100.

 

Output data

Each number (cost determined amount of the minutes) remove in separate line accurate to one tenth or 0.

 

Example input data

8

 

Example output data

2,0

3,5

5,0

6,5

8,0

9,5

11,0

12,5

 

The Author: Smirnova A.M.

 

 

 

 

 


View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
842. Contiguous interval of dates 632. 1076. Diferent numbers 1071. Digitals 841. Every 3rd row
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.047 sec.
© Copyright VSTU, AVT, Nosov D.A.