結果
| 問題 |
No.1273 はじめのζ関数
|
| コンテスト | |
| ユーザー |
kotatsuinu5
|
| 提出日時 | 2020-10-30 22:54:05 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 224 bytes |
| コンパイル時間 | 94 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-22 02:35:01 |
| 合計ジャッジ時間 | 4,975 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 39 WA * 1 |
ソースコード
import math
x=int(input())
ans=0
for j in range(x,3000):
tmp=0
for i in range(1,1000000):
tmp+=1/(i**j)
if i**j>10**18:
break
tmp=(tmp-1)*(10**6)
ans+=tmp
print(math.floor(ans))
kotatsuinu5