問題一覧 > 通常問題

No.1272 An Unusual Series

レベル : / AI推定難易度 : 450 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 小数誤差許容問題 絶対誤差または相対誤差が $10^{-6}$ 以下。ただし、ジャッジ側の都合で500桁未満にしてください
タグ : (AC するまで非表示) / 解いたユーザー数 172
作問者 : 👑 qand / テスター : logx
お気に入りにしたユーザー ProblemId : 5237 / 自分の提出
問題文最終更新日: 2021-05-08 01:04:25
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 272 (Weird math contest) (順位表) の他の問題:

Problem Statement

Find $\displaystyle \sum_{n=1}^{\infty} \frac{\sin{(kn)}}{n^n}$.

It is guaranteed that this series converges within the specified range.

Input

$k$

  • k is an integer.
  • $0 \le k \le 10^8$
  • Output

    Print a newline at the end. Your answer must have an absolute error or a relative error (at least one of them) of at most $10^{-6}$.

    [Added at 21:26] Print the value of this infinite series.

    Sample

    Sample 1
    Input
    0
    Output
    0

    Sample 2
    Input
    1
    Output
    1.0707537618528777

    Sample 3
    Input
    100000000
    Output
    0.7498732136061026

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