結果
| 問題 |
No.1273 はじめのζ関数
|
| コンテスト | |
| ユーザー |
Somtk_42
|
| 提出日時 | 2020-10-30 22:06:00 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 192 bytes |
| コンパイル時間 | 215 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,824 KB |
| 最終ジャッジ日時 | 2024-07-22 00:42:47 |
| 合計ジャッジ時間 | 7,187 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 1 |
| other | AC * 20 WA * 1 TLE * 1 -- * 18 |
ソースコード
from math import floor
def z(n):
r = 0
for i in range(1,1000):
r += 1/pow(i, n)
return r
x = int(input())
ans = 0
for i in range(x, x+100):
ans += z(i)-1
print(floor(ans*1000000))
Somtk_42