結果
問題 |
No.1273 はじめのζ関数
|
ユーザー |
|
提出日時 | 2020-10-30 22:22:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 350 bytes |
コンパイル時間 | 154 ms |
コンパイル使用メモリ | 82,092 KB |
実行使用メモリ | 75,676 KB |
最終ジャッジ日時 | 2024-07-22 01:21:38 |
合計ジャッジ時間 | 4,131 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 26 WA * 14 |
ソースコード
import math def zeta(n): if n==2: return math.pi**2/6-1 elif n==3: return 0.202056903159594 else: ret=0 for i in range(2,200): ret+=1/(i**n) return ret n=int(input()) if n>=200: print(0) else: ans=0 for i in range(n,200): ans+=zeta(i) print(int(str(ans)[2:8]))