結果

問題 No.1273 はじめのζ関数
ユーザー NatsubiSoganNatsubiSogan
提出日時 2020-10-30 21:46:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 255 ms / 2,000 ms
コード長 238 bytes
コンパイル時間 647 ms
コンパイル使用メモリ 10,552 KB
実行使用メモリ 45,792 KB
最終ジャッジ日時 2023-09-29 05:45:12
合計ジャッジ時間 12,716 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 252 ms
45,564 KB
testcase_01 AC 253 ms
45,600 KB
testcase_02 AC 244 ms
45,528 KB
testcase_03 AC 245 ms
45,524 KB
testcase_04 AC 246 ms
45,548 KB
testcase_05 AC 245 ms
45,624 KB
testcase_06 AC 250 ms
45,628 KB
testcase_07 AC 244 ms
45,548 KB
testcase_08 AC 242 ms
45,612 KB
testcase_09 AC 243 ms
45,648 KB
testcase_10 AC 246 ms
45,684 KB
testcase_11 AC 249 ms
45,648 KB
testcase_12 AC 242 ms
45,652 KB
testcase_13 AC 247 ms
45,604 KB
testcase_14 AC 245 ms
45,716 KB
testcase_15 AC 246 ms
45,600 KB
testcase_16 AC 251 ms
45,656 KB
testcase_17 AC 248 ms
45,792 KB
testcase_18 AC 245 ms
45,692 KB
testcase_19 AC 246 ms
45,596 KB
testcase_20 AC 246 ms
45,652 KB
testcase_21 AC 251 ms
45,564 KB
testcase_22 AC 253 ms
45,688 KB
testcase_23 AC 255 ms
45,568 KB
testcase_24 AC 252 ms
45,456 KB
testcase_25 AC 250 ms
45,552 KB
testcase_26 AC 250 ms
45,552 KB
testcase_27 AC 247 ms
45,764 KB
testcase_28 AC 249 ms
45,548 KB
testcase_29 AC 249 ms
45,532 KB
testcase_30 AC 251 ms
45,552 KB
testcase_31 AC 253 ms
45,660 KB
testcase_32 AC 248 ms
45,784 KB
testcase_33 AC 246 ms
45,540 KB
testcase_34 AC 246 ms
45,524 KB
testcase_35 AC 245 ms
45,628 KB
testcase_36 AC 245 ms
45,644 KB
testcase_37 AC 244 ms
45,648 KB
testcase_38 AC 246 ms
45,704 KB
testcase_39 AC 244 ms
45,676 KB
testcase_40 AC 242 ms
45,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import scipy.special
x = int(input())
ans = 0
l = [0]
for i in range(2, 10000):
    cur = scipy.special.zeta(i) - 1
    ans += cur
    l.append(l[-1] + cur)
if x == 2:
    print(1000000)
else:   
    print(int((ans - l[x - 2]) * 10 ** 6))
0