All problems

Problem 778

Simple Interest

Easy · 10 pts · Math, Basics

Problem

Simple interest on a principal P at a yearly rate of R percent for T years is P × R × T / 100. Compute it and print it rounded down to a whole number. Multiply first and divide last, so that no precision is lost along the way; the product P × R × T can reach 10^12, which needs a 64-bit integer.

Input

A single line with three integers P, R and T.

Output

Print the simple interest, rounded down.

Constraints

1 <= P <= 10^6; 0 <= R <= 100; 0 <= T <= 100

Example input

1000 5 3

Example output

150

Explanation

For P = 1000, R = 5 and T = 3, the interest is 1000 × 5 × 3 / 100 = 150.

Every problem here can be used in a RelayTrixCode team match. Create a room.

Previous: Grade from Marks Next: Swap Two Numbers