SarthakKeshari / CPP-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
47 stars 132 forks source link

Position in Fraction #425

Open rohitkumar9710 opened 2 years ago

rohitkumar9710 commented 2 years ago

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

PrashantSrivastava33 commented 2 years ago

@SarthakKeshari please assign me this question

rohitkumar9710 commented 2 years ago

@PrashantSrivastava33 this issue was not created by the owner. @SarthakKeshari assign this to me in C++.

SarthakKeshari commented 2 years ago

@rohitkumar9710, As per the contribution guidlines issues can be claimed by anyone and can be created by anyone. Kindly go through CONTRIBUTING.md for futher details.

SarthakKeshari commented 2 years ago

@PrashantSrivastava33, Kindly add your solution to "codeforces" folder. Deadline - 13/10/2021