Given two positive numbers A and B. The task is to divide A by B and calculate the number of digits after decimal.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains two numbers A and B.
For each test case print the count of digits after decimal. If in case the numbers are irrational or the decimals are non terminating print "-1".
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.