[BOJ 1312] 소수

View as PDF

Submit solution

Points: 2
Time limit: 2.0s
Memory limit: 128M

Problem type
Allowed languages
Assembly, Awk, C, C++, Java, Pascal, Perl, Python, Sed, Text

피제수(분자) A와 제수(분모) B가 있다. 두 수를 나누었을 때, 소숫점 아래 N번째 자리수를 구하려고 한다. 예를 들어, A=3, B=4, N=1이라면, A÷B=0.75 이므로 출력 값은 7이 된다.

입력 형식

첫 번째 줄에 A와 B(1 ≤ A, B ≤ 100,000), N(1 ≤ N ≤ 1,000,000)이 공백을 경계로 주어진다.

출력 형식

A÷B를 했을 때, 소숫점 아래 N번째 수를 출력한다.

예제 입력

25 7 5

예제 출력

2

Comments

There are no comments at the moment.