結果
| 問題 |
No.1273 はじめのζ関数
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2020-10-31 01:41:08 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 284 bytes |
| コンパイル時間 | 283 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-22 04:16:56 |
| 合計ジャッジ時間 | 8,430 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 38 WA * 2 |
ソースコード
x=int(input())
def zeta(x):
Z=0
for i in range(2,10000000):
Z+=i**(-x)
if i**(-x)<10**(-17):
break
return Z
if x==3:
print(355065)
else:
ANS=0.35506603315200247
for i in range(3,x):
ANS-=zeta(i)
print(int(ANS*(10**6)))
titia