Pillars


Submit solution

Points: 1
Time limit: 2.0s
Memory limit: 256M

Problem types
Allowed languages
Python

There are several pillars in a straight line.

You are given:

  • the number of pillars
  • the distance between two neighbouring pillars in metres
  • the width of one pillar in centimetres

Write a program that prints the distance between the first pillar and the last pillar in centimetres.

Do not include the width of the first and last pillar.

If there is only one pillar, the distance is 0.

Input

The input contains three integers on one line:

  • num_pill: the number of pillars
  • dist: the distance between neighbouring pillars in metres
  • width: the width of one pillar in centimetres

Output

Output the distance in centimetres.

Sample Input

2 20 25

Sample Output

2000

Comments

There are no comments at the moment.