結果

問題 No.1273 はじめのζ関数
ユーザー NatsubiSoganNatsubiSogan
提出日時 2020-10-30 21:45:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 195 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 45,976 KB
最終ジャッジ日時 2023-09-29 05:40:07
合計ジャッジ時間 10,524 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 212 ms
45,792 KB
testcase_01 AC 215 ms
45,784 KB
testcase_02 AC 222 ms
45,664 KB
testcase_03 AC 209 ms
45,720 KB
testcase_04 AC 209 ms
45,784 KB
testcase_05 AC 210 ms
45,976 KB
testcase_06 AC 209 ms
45,876 KB
testcase_07 AC 218 ms
45,780 KB
testcase_08 AC 211 ms
45,892 KB
testcase_09 AC 210 ms
45,764 KB
testcase_10 AC 214 ms
45,752 KB
testcase_11 AC 210 ms
45,768 KB
testcase_12 AC 209 ms
45,820 KB
testcase_13 AC 210 ms
45,684 KB
testcase_14 AC 213 ms
45,692 KB
testcase_15 AC 216 ms
45,836 KB
testcase_16 AC 210 ms
45,920 KB
testcase_17 AC 212 ms
45,864 KB
testcase_18 AC 210 ms
45,792 KB
testcase_19 AC 213 ms
45,820 KB
testcase_20 WA -
testcase_21 AC 214 ms
45,776 KB
testcase_22 AC 210 ms
45,660 KB
testcase_23 AC 218 ms
45,636 KB
testcase_24 AC 210 ms
45,680 KB
testcase_25 AC 210 ms
45,920 KB
testcase_26 AC 211 ms
45,704 KB
testcase_27 AC 211 ms
45,748 KB
testcase_28 AC 211 ms
45,740 KB
testcase_29 AC 210 ms
45,736 KB
testcase_30 AC 209 ms
45,724 KB
testcase_31 AC 212 ms
45,840 KB
testcase_32 AC 213 ms
45,876 KB
testcase_33 AC 211 ms
45,804 KB
testcase_34 AC 210 ms
45,864 KB
testcase_35 AC 209 ms
45,840 KB
testcase_36 AC 211 ms
45,884 KB
testcase_37 AC 213 ms
45,804 KB
testcase_38 AC 211 ms
45,700 KB
testcase_39 AC 210 ms
45,868 KB
testcase_40 AC 219 ms
45,800 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)
print(int((ans - l[x - 2]) * 10 ** 6))
0