結果
| 問題 | No.1235 ζ関数 |
| ユーザー |
r_ishida
|
| 提出日時 | 2026-03-15 00:51:12 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 545 ms / 2,000 ms |
| コード長 | 387 bytes |
| 記録 | |
| コンパイル時間 | 203 ms |
| コンパイル使用メモリ | 85,448 KB |
| 実行使用メモリ | 79,892 KB |
| 最終ジャッジ日時 | 2026-03-15 00:51:21 |
| 合計ジャッジ時間 | 6,332 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
import math
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int, sys.stdin.readline().rstrip().split())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
n = I()
ans = 0
for i in range(1, 100):
ans += 1/i**n
print(ans)
r_ishida