2176: 【例29.3】 求小数的某一位

Memory Limit:64 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:0 Solved:3

Description

分数b/a化为小数后,小数点后第n位的数字是多少?

Input

三个正整数a,b,n,相邻两个数之间用单个空格隔开。0< a < b < 100,1< n< 10000。

Output

一个数字。

Sample Input Copy

2 1 1

Sample Output Copy

5

Source/Category