結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 252 ms
7,940 KB
testcase_01 AC 260 ms
7,900 KB
testcase_02 AC 16 ms
8,192 KB
testcase_03 AC 16 ms
8,324 KB
testcase_04 AC 263 ms
7,896 KB
testcase_05 AC 248 ms
8,020 KB
testcase_06 AC 16 ms
8,320 KB
testcase_07 AC 259 ms
8,076 KB
testcase_08 AC 16 ms
8,316 KB
testcase_09 AC 16 ms
8,216 KB
testcase_10 AC 16 ms
8,336 KB
testcase_11 AC 251 ms
7,892 KB
testcase_12 AC 256 ms
7,820 KB
testcase_13 AC 16 ms
8,204 KB
testcase_14 AC 267 ms
7,968 KB
testcase_15 AC 271 ms
8,000 KB
testcase_16 AC 268 ms
7,960 KB
testcase_17 AC 264 ms
8,072 KB
testcase_18 AC 16 ms
8,340 KB
testcase_19 AC 16 ms
8,268 KB
testcase_20 WA -
testcase_21 AC 16 ms
8,320 KB
testcase_22 AC 16 ms
8,184 KB
testcase_23 AC 16 ms
8,320 KB
testcase_24 AC 16 ms
8,208 KB
testcase_25 AC 16 ms
8,272 KB
testcase_26 AC 16 ms
8,200 KB
testcase_27 AC 16 ms
8,212 KB
testcase_28 AC 16 ms
8,324 KB
testcase_29 AC 16 ms
8,328 KB
testcase_30 AC 16 ms
8,380 KB
testcase_31 AC 16 ms
8,184 KB
testcase_32 AC 16 ms
8,272 KB
testcase_33 AC 16 ms
8,252 KB
testcase_34 AC 16 ms
8,136 KB
testcase_35 AC 16 ms
8,212 KB
testcase_36 AC 16 ms
8,124 KB
testcase_37 AC 16 ms
8,184 KB
testcase_38 AC 16 ms
8,312 KB
testcase_39 AC 17 ms
8,312 KB
testcase_40 AC 247 ms
7,924 KB
権限があれば一括ダウンロードができます

ソースコード

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())
if x >= 21:
  print(0)
  exit()
ans = 0
for i in range(x, x+200):
  ans += z(i)-1
print(floor(ans*1000000))
0