結果

問題 No.1273 はじめのζ関数
コンテスト
ユーザー Somtk_42
提出日時 2020-10-30 22:06:00
言語 Python3
(3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 192 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 289 ms
コンパイル使用メモリ 21,540 KB
実行使用メモリ 15,996 KB
最終ジャッジ日時 2026-08-22 17:39:09
合計ジャッジ時間 9,531 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 1
other AC * 20 WA * 1 TLE * 1 -- * 18
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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))
0