問題一覧 > 通常問題

No.1539 The Indispensable Part

レベル : / AI推定難易度 : 1050 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 小数誤差許容問題 絶対誤差または相対誤差が $10^{-8}$ 以下。ただし、ジャッジ側の都合で500桁未満にしてください
タグ : (AC するまで非表示) / 解いたユーザー数 22
作問者 : Re_menal2 / テスター : 57tggx logx 👑 qand ゅゅ とりゐ
お気に入りにしたユーザー ProblemId : 6310 / 自分の提出
問題文最終更新日: 2021-06-06 18:34:24
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
ゅゅちゃんお誕生日コンテスト (順位表) の他の問題:

Problem Statement

Today is Yuyu's birthday. As a birthday present, Yuyu received a toy that, for an input positive integer $N$, displays the value of the definite integral $\displaystyle \int_0^{\frac{1}{e\pi^2}} e^{\cos \frac{x}{N}}\ dx$. However, the screen was damaged for some reason, so part of the value could not be seen. Therefore, please find the value of the above definite integral in place of the toy. Solve $T$ test cases per $1$ input file.

Input

$T$
$N_1$
$\vdots$
$N_T$
  • $T,N_1,\ldots,N_T$ are integers
  • $1\leq T \leq 2\cdot 10^5$
  • $1 \leq N_i \leq 10^8$ for each $1\leq i \leq T$

Output

First, a positive integer $T$ is given. For the $T$ positive integers $N_i$, output the value of the definite integral $\displaystyle \int_0^{\frac{1}{e\pi^2}} e^{\cos \frac{x}{N_i}}\ dx$. Also, print a newline after each test case.
Floating-point errors are tolerated: the absolute error or relative error must be at most $10^{-8}$. However, due to judge limitations, please output fewer than 500 digits.

Sample

Sample 1
Input
2
1
100000000
Output
0.1012977284
0.1013211836

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。