2824. Box

单点时限: 2.0 sec

内存限制: 256 MB

A confectionery needs to make boxes for chocolates from square cardboard sheets of size aa. This box should be opened from the top and have square base. Box is made in two steps. At the first step square pieces of size bb get cut at all corners of the cardboard sheet. At the second step rectangular pieces get bent along the edges by the angle of 90 degrees to form the box. Having length of cardboard sheet‘s side a you need to find height b of the box when its volume is maximal.

输入格式

The first line of input contains one integer n (1≤n≤10) - number of tests. Each of subsequent n lines contains one real number – length of cardboard sheet‘s side a (1≤a≤1014) for the test.

输出格式

Output should contain n lines, each line should contain optimal height b for the corresponding test rounded to 10 digits after dot.

样例

Input
1
34.0
Output
5.6666666667

77 人解决,80 人已尝试。

85 份提交通过,共有 127 份提交。

2.1 EMB 奖励。

创建: 9 年,11 月前.

修改: 3 年前.

最后提交: 2 月,3 周前.

来源: Ukrainian

题目标签