結果

問題 No.1273 はじめのζ関数
ユーザー KudeKude
提出日時 2020-10-30 21:40:47
言語 Python3
(3.10.1 + numpy 1.22.3 + scipy 1.8.0)
結果
AC  
実行時間 229 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 586 ms
使用メモリ 42,484 KB
最終ジャッジ日時 2023-02-21 11:41:33
合計ジャッジ時間 11,750 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 218 ms
41,908 KB
testcase_01 AC 220 ms
42,484 KB
testcase_02 AC 223 ms
41,916 KB
testcase_03 AC 225 ms
41,796 KB
testcase_04 AC 221 ms
41,808 KB
testcase_05 AC 215 ms
42,456 KB
testcase_06 AC 217 ms
42,448 KB
testcase_07 AC 222 ms
41,948 KB
testcase_08 AC 226 ms
41,968 KB
testcase_09 AC 223 ms
41,960 KB
testcase_10 AC 229 ms
41,884 KB
testcase_11 AC 223 ms
42,000 KB
testcase_12 AC 222 ms
41,984 KB
testcase_13 AC 221 ms
41,820 KB
testcase_14 AC 217 ms
42,128 KB
testcase_15 AC 219 ms
41,860 KB
testcase_16 AC 220 ms
41,896 KB
testcase_17 AC 222 ms
41,952 KB
testcase_18 AC 214 ms
41,952 KB
testcase_19 AC 221 ms
41,768 KB
testcase_20 AC 199 ms
41,840 KB
testcase_21 AC 204 ms
41,984 KB
testcase_22 AC 219 ms
41,992 KB
testcase_23 AC 211 ms
41,952 KB
testcase_24 AC 215 ms
41,916 KB
testcase_25 AC 213 ms
41,952 KB
testcase_26 AC 199 ms
41,940 KB
testcase_27 AC 200 ms
41,788 KB
testcase_28 AC 205 ms
41,816 KB
testcase_29 AC 199 ms
41,800 KB
testcase_30 AC 203 ms
41,936 KB
testcase_31 AC 208 ms
41,872 KB
testcase_32 AC 202 ms
41,976 KB
testcase_33 AC 211 ms
41,908 KB
testcase_34 AC 222 ms
42,284 KB
testcase_35 AC 223 ms
41,860 KB
testcase_36 AC 207 ms
42,144 KB
testcase_37 AC 206 ms
41,932 KB
testcase_38 AC 211 ms
42,036 KB
testcase_39 AC 216 ms
41,972 KB
testcase_40 AC 220 ms
42,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from scipy.special import zeta
x = int(input())
if x == 2:
    print(10 ** 6)
    exit(0)
ans = 0
for i in range(x, 10000):
    ans += zeta(i) - 1
print(int(ans * 10 ** 6))
0