結果
| 問題 |
No.1273 はじめのζ関数
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2020-10-31 01:35:25 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 219 bytes |
| コンパイル時間 | 330 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 68,992 KB |
| 最終ジャッジ日時 | 2024-07-22 04:13:57 |
| 合計ジャッジ時間 | 6,845 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 1 |
| other | TLE * 1 -- * 39 |
ソースコード
x=int(input())
ANS=1
def zeta(x):
Z=0
for i in range(2,100000000):
Z+=i**(-x)
if i**(-x)<10**(-15):
break
return Z
for i in range(2,x):
ANS-=zeta(i)
print(int(ANS*(10**6)))
titia