Power

0

0 votes
Easy
Problem

Given two integer X an N. Find real number Y such that Y1 + Y2 + Y3 + ... + YN = X. Your answer should be correct upto 9 decimal places.

Input
First line contains an integer T (number of test cases). Next T lines contains two integers separated by a single space denoting value of X and N respectively.

Output
For each testcase print answer upto exact 6 decimal places.
Number of decimal places should be exactly 6 else your solution will be judged as wrong answer.

Constraints
1 <= T <= 103
1 <= X <= 1015
1 <= N <= 103

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?