結果

問題 No.1235 ζ関数
ユーザー NatsubiSogan
提出日時 2020-09-21 16:44:35
言語 PyPy3
(7.3.15)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 188 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 81,840 KB
実行使用メモリ 107,900 KB
最終ジャッジ日時 2024-06-24 11:46:18
合計ジャッジ時間 6,575 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other TLE * 1 -- * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal
n = int(input())
ans = Decimal("0")
for i in range(1, 100000):
    ans += Decimal("1") / Decimal(str(Decimal(pow(Decimal(str(i)), Decimal(str(n))))))
print(ans)
0