結果

問題 No.1273 はじめのζ関数
ユーザー c-yanc-yan
提出日時 2020-10-30 23:25:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 383 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 10,548 KB
実行使用メモリ 77,084 KB
最終ジャッジ日時 2023-09-29 08:31:35
合計ジャッジ時間 45,319 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,018 ms
73,568 KB
testcase_01 AC 1,034 ms
73,600 KB
testcase_02 AC 1,017 ms
73,408 KB
testcase_03 AC 1,023 ms
73,492 KB
testcase_04 AC 1,060 ms
73,496 KB
testcase_05 AC 1,032 ms
73,568 KB
testcase_06 AC 1,038 ms
73,644 KB
testcase_07 AC 1,067 ms
73,552 KB
testcase_08 AC 1,040 ms
73,440 KB
testcase_09 AC 990 ms
73,452 KB
testcase_10 AC 1,005 ms
73,484 KB
testcase_11 AC 1,028 ms
73,536 KB
testcase_12 AC 1,031 ms
73,404 KB
testcase_13 AC 998 ms
73,496 KB
testcase_14 AC 1,030 ms
73,592 KB
testcase_15 AC 1,078 ms
73,452 KB
testcase_16 AC 1,018 ms
73,548 KB
testcase_17 AC 1,074 ms
73,508 KB
testcase_18 AC 1,081 ms
73,480 KB
testcase_19 AC 1,068 ms
73,624 KB
testcase_20 WA -
testcase_21 AC 1,048 ms
73,420 KB
testcase_22 AC 1,004 ms
73,564 KB
testcase_23 AC 995 ms
73,652 KB
testcase_24 AC 1,005 ms
73,448 KB
testcase_25 AC 996 ms
73,480 KB
testcase_26 AC 1,013 ms
73,540 KB
testcase_27 AC 997 ms
73,448 KB
testcase_28 AC 1,020 ms
73,480 KB
testcase_29 AC 1,043 ms
73,408 KB
testcase_30 AC 1,017 ms
73,564 KB
testcase_31 AC 1,038 ms
73,640 KB
testcase_32 AC 993 ms
73,536 KB
testcase_33 AC 998 ms
73,476 KB
testcase_34 AC 1,050 ms
73,512 KB
testcase_35 AC 1,011 ms
73,484 KB
testcase_36 AC 998 ms
73,492 KB
testcase_37 AC 1,008 ms
73,484 KB
testcase_38 AC 1,042 ms
73,480 KB
testcase_39 AC 1,039 ms
73,496 KB
testcase_40 AC 1,019 ms
73,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def f(n):
    for i in range(2, 131072 + 1):
        x = i ** n
        if x > 1000000000000:
            break
        t.append(1 / x)


x = int(input())

t = []
for i in range(x, 32):
    f(i)

t.extend([0] * (32 * 131072 - len(t)))
t.sort()

x = 1
while x < 32 * 131072:
    for i in range(0, 32 * 131072, x * 2):
        t[i] += t[i + x]
    x *= 2

print(int(t[0] * (10 ** 6)))
0