結果
問題 |
No.1273 はじめのζ関数
|
ユーザー |
![]() |
提出日時 | 2020-10-31 01:37:50 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 218 bytes |
コンパイル時間 | 267 ms |
コンパイル使用メモリ | 82,684 KB |
実行使用メモリ | 65,060 KB |
最終ジャッジ日時 | 2024-07-22 04:16:48 |
合計ジャッジ時間 | 45,604 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 39 WA * 1 |
ソースコード
x=int(input()) ANS=1 def zeta(x): Z=0 for i in range(2,10000000): Z+=i**(-x) if i**(-x)<10**(-14): break return Z for i in range(2,x): ANS-=zeta(i) print(int(ANS*(10**6)))