No.1118 Sum of Squares of sin(x)/x
レベル :
/ AI推定難易度 : 1600
/ 実行時間制限 : 1ケース 2.000秒 / メモリ制限
: 512 MB / 小数誤差許容問題 絶対誤差または相対誤差が $10^{-9}$ 以下。ただし、ジャッジ側の都合で500桁未満にしてください
タグ : / 解いたユーザー数 16
作問者 :
37zigen
/ テスター :
夕叢霧香(ゆうむらきりか)
タグ : / 解いたユーザー数 16
作問者 :
37zigen
/ テスター :
夕叢霧香(ゆうむらきりか)
問題文最終更新日: 2026-10-21 12:39:49
English (AI translation)
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
yukicoder contest 257
(順位表)
の他の問題:
Problem Statement
Find $$\sum_{j=0}^{\infty} \mathrm{sinc}^2(x+j)$$.
Here, $$\mathrm{sinc}(x)=\begin{cases}
1 &, & \text{if}\ x = 0;\\
\frac{\sin(x)}{x}&, & \text{otherwise}.
\end{cases}$$
Input
$x$
$x$ is a real number (double-precision floating point), given in decimal notation with at most $20$ digits after the decimal point.
$0 \le x \le 1000$
Output
Output the value you found. At least one of the absolute error and the relative error must be at most $10^{-9}$.
Sample
Sample 1
Input
0
Output
2.07079632677096370230
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。