結果

問題 No.1408 Nice Dice Game
ユーザー lam6er
提出日時 2025-03-31 17:21:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 528 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 82,756 KB
実行使用メモリ 53,960 KB
最終ジャッジ日時 2025-03-31 17:22:55
合計ジャッジ時間 2,677 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

zeta_table = {
    3: 1.2020569032,
    4: 1.0823232337,
    5: 1.0369277551,
    6: 1.0173430619,
    7: 1.0083492774,
    8: 1.0040773562,
    9: 1.0020083928,
    10: 1.0009945751,
    11: 1.0004941886,
    12: 1.0002460866,
    13: 1.0001227133,
    14: 1.0000612482,
    15: 1.0000305882,
    16: 1.0000152823,
    17: 1.0000076372,
    18: 1.0000038173,
    19: 1.0000019082,
    20: 1.0000009540,
}

N = int(input())
s = N + 2

if s in zeta_table:
    print("{0:.9f}".format(zeta_table[s]))
else:
    print("1.000000000")
0