結果
| 問題 |
No.1273 はじめのζ関数
|
| コンテスト | |
| ユーザー |
kotatsuinu5
|
| 提出日時 | 2020-10-30 23:03:14 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 722 ms / 2,000 ms |
| コード長 | 264 bytes |
| コンパイル時間 | 131 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-07-22 02:45:12 |
| 合計ジャッジ時間 | 3,619 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 40 |
ソースコード
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**17:
break
tmp=(tmp-1)
ans+=tmp
if x==2:
print(1000000)
else:
print(math.floor((ans)*(10**6)))
kotatsuinu5