結果
問題 |
No.1235 ζ関数
|
ユーザー |
|
提出日時 | 2020-09-21 16:44:08 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 189 bytes |
コンパイル時間 | 191 ms |
コンパイル使用メモリ | 82,040 KB |
実行使用メモリ | 107,688 KB |
最終ジャッジ日時 | 2024-06-24 11:46:12 |
合計ジャッジ時間 | 6,533 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 20 |
ソースコード
from decimal import Decimal n = int(input()) ans = Decimal("0") for i in range(1, 1000000): ans += Decimal("1") / Decimal(str(Decimal(pow(Decimal(str(i)), Decimal(str(n)))))) print(ans)