結果

問題 No.1273 はじめのζ関数
ユーザー KudeKude
提出日時 2020-10-30 21:40:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 244 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 973 ms
コンパイル使用メモリ 10,340 KB
実行使用メモリ 45,544 KB
最終ジャッジ日時 2023-09-29 05:31:13
合計ジャッジ時間 11,523 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 234 ms
45,348 KB
testcase_01 AC 243 ms
45,380 KB
testcase_02 AC 234 ms
45,292 KB
testcase_03 AC 235 ms
45,420 KB
testcase_04 AC 239 ms
45,284 KB
testcase_05 AC 242 ms
45,420 KB
testcase_06 AC 244 ms
45,428 KB
testcase_07 AC 240 ms
45,356 KB
testcase_08 AC 240 ms
45,344 KB
testcase_09 AC 243 ms
45,284 KB
testcase_10 AC 241 ms
45,408 KB
testcase_11 AC 233 ms
45,320 KB
testcase_12 AC 232 ms
45,300 KB
testcase_13 AC 233 ms
45,500 KB
testcase_14 AC 238 ms
45,260 KB
testcase_15 AC 234 ms
45,488 KB
testcase_16 AC 236 ms
45,492 KB
testcase_17 AC 235 ms
45,488 KB
testcase_18 AC 235 ms
45,312 KB
testcase_19 AC 233 ms
45,264 KB
testcase_20 AC 217 ms
45,000 KB
testcase_21 AC 220 ms
45,356 KB
testcase_22 AC 235 ms
45,456 KB
testcase_23 AC 230 ms
45,324 KB
testcase_24 AC 229 ms
45,312 KB
testcase_25 AC 226 ms
45,324 KB
testcase_26 AC 217 ms
45,288 KB
testcase_27 AC 216 ms
45,376 KB
testcase_28 AC 216 ms
45,324 KB
testcase_29 AC 219 ms
45,296 KB
testcase_30 AC 221 ms
45,356 KB
testcase_31 AC 227 ms
45,396 KB
testcase_32 AC 223 ms
45,348 KB
testcase_33 AC 230 ms
45,496 KB
testcase_34 AC 228 ms
45,440 KB
testcase_35 AC 232 ms
45,544 KB
testcase_36 AC 227 ms
45,312 KB
testcase_37 AC 223 ms
45,272 KB
testcase_38 AC 226 ms
45,348 KB
testcase_39 AC 225 ms
45,264 KB
testcase_40 AC 239 ms
45,512 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