Dilu's Library

jackal_1586 BRACU CSE 419 Lab Mid Con...
Limits 1s, 512 MB

Dilu is a young boy who loves mathematics. He recently learned how to code. He was interested in solving different mathematical problems, but was irritated with the fact of double number precision.

He wanted to write a high precision arithmetic library for himself which will have precision up to 100 digits after decimal point. Since Dilu is new in programming, he is facing many problems doing it.

So, he asked for your help. He said only division operation would be okay for now. You'll be given two integers A and B by Dilu. You have to print A/B up to 100 digits after decimal point. If the output exceeds 100 placed after decimal point, you need to round the quotient.

Input

Input begins with a integer T (0 ≤ T ≤ 1000) denoting the number of test cases to be followed. Each of next T line contains two integers A and B (0 ≤ A,B ≤ 10^7 and B ≠ 0).

Output

For each case print the quotient of A/B up to 100. If possible exclude trailing zeros.

Sample

InputOutput
3
2 4
5 5
0 3
0.5
1
0

Submit

Login to submit.

Statistics

25% Solution Ratio
EWU_DeadLocKEarliest, Jun '16
MR.Jukerburg11Fastest, 0.0s
NJRafiLightest, 131 kB
razwan_islamShortest, 396B
Toph uses cookies. By continuing you agree to our Cookie Policy.