結果
| 問題 | No.1235 ζ関数 |
| ユーザー |
r_ishida
|
| 提出日時 | 2026-03-15 00:51:12 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 508 ms / 2,000 ms |
| + 694µs | |
| コード長 | 387 bytes |
| 記録 | |
| コンパイル時間 | 413 ms |
| コンパイル使用メモリ | 81,208 KB |
| 実行使用メモリ | 84,104 KB |
| 最終ジャッジ日時 | 2026-10-07 21:23:33 |
| 合計ジャッジ時間 | 7,083 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 26 |
ソースコード
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