結果
問題 | No.1273 はじめのζ関数 |
ユーザー |
|
提出日時 | 2020-10-30 22:17:02 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 348 bytes |
コンパイル時間 | 232 ms |
コンパイル使用メモリ | 82,036 KB |
実行使用メモリ | 75,580 KB |
最終ジャッジ日時 | 2024-07-22 01:04:24 |
合計ジャッジ時間 | 3,042 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 38 WA * 2 |
ソースコード
import mathdef zeta(n):if n==2:return math.pi**2/6-1elif n==3:return 0.202056903159594else:ret=0for i in range(2,100):ret+=1/(i**n)return retn=int(input())if n>=100:print(0)else:ans=0for i in range(n,100):ans+=zeta(i)print(int(ans*(10**6)))