QOJ.ac

QOJ

حد الوقت: 1.0 s حد الذاكرة: 256 MB مجموع النقاط: 100 قابلة للهجوم ✓

#15200. Square

الإحصائيات

As shown in the figure below, first draw a square with side length 1, then draw a second square circumscribed around it such that the four vertices of the original square lie exactly on the midpoints of the sides of the new square. Continuing this process, the vertices of the $i$-th square lie exactly on the midpoints of the sides of the $(i+1)$-th square. Please find the side length of the $n$-th square drawn.

Input

This problem contains multiple test cases. The first line contains an integer $T$ ($1 \le T \le 50$). For each test case, the input contains a single integer $n$ ($1 \le n \le 50$).

Output

For each test case, output a single decimal number representing the side length of the $n$-th square, rounded to two decimal places.

Examples

Input 1

2
1
2

Output 1

1.00
1.41

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.