11157 - Approximation of Pi   

Description

Given an Integer n , please sum over  i = 0 to n as an approximation of pi .

Namely , 

  

 

Input

The first line contains a integer M, indicating the number of testcases.

The following lines are testcases.

Each testcase contains an integer  "n" ,which indicate you have to sum over i = 0 to n,
 
where  0<= n <=100

Output

A floating number with the format  :  "%.10f\n"

Sample Input  Download

Sample Output  Download

Tags




Discuss