Position in Fraction #425
Labels
hacktoberfest
Under Hacktoberfest 2021
Level 2
20 Points
Online
Question belongs to online platforms
Enter your question -
You have a fraction a/b . You need to find the first occurrence of digit c into decimal notation of the fraction after decimal point. Digits in decimal part are 1 - indexed.
Test case 1:
Input: 4 7 2
Output: 5
Explanation: Since, 4/7 = 0.5714285. . . . . . the digit 2 appeared at index 5 in the decimal part.
Enter link to the question(if question belongs to any online platform) -
https://codeforces.com/contest/900/problem/B
Tags for the question(eg - Array, Basic, Stack, etc.) -
maths, number theory, rating: 1300
The text was updated successfully, but these errors were encountered: