結果

問題 No.1273 はじめのζ関数
ユーザー Somtk_42Somtk_42
提出日時 2020-10-30 22:06:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 192 bytes
コンパイル時間 907 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 12,740 KB
最終ジャッジ日時 2023-09-29 06:12:47
合計ジャッジ時間 6,906 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
7,956 KB
testcase_01 AC 108 ms
7,880 KB
testcase_02 AC 123 ms
7,908 KB
testcase_03 AC 159 ms
7,868 KB
testcase_04 AC 111 ms
7,908 KB
testcase_05 AC 102 ms
7,812 KB
testcase_06 AC 149 ms
7,988 KB
testcase_07 AC 109 ms
8,012 KB
testcase_08 AC 160 ms
7,868 KB
testcase_09 AC 132 ms
7,956 KB
testcase_10 AC 161 ms
7,916 KB
testcase_11 AC 103 ms
7,808 KB
testcase_12 AC 106 ms
7,868 KB
testcase_13 AC 162 ms
7,908 KB
testcase_14 AC 113 ms
7,880 KB
testcase_15 AC 115 ms
8,052 KB
testcase_16 AC 114 ms
7,868 KB
testcase_17 AC 112 ms
7,880 KB
testcase_18 AC 122 ms
7,812 KB
testcase_19 AC 123 ms
8,040 KB
testcase_20 WA -
testcase_21 TLE -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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