結果

問題 No.1235 ζ関数
ユーザー onakasuitacityonakasuitacity
提出日時 2020-10-25 09:56:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,886 ms / 2,000 ms
コード長 271 bytes
コンパイル時間 437 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 92,920 KB
最終ジャッジ日時 2023-09-28 22:24:13
合計ジャッジ時間 42,855 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,874 ms
76,612 KB
testcase_01 AC 1,876 ms
85,532 KB
testcase_02 AC 1,876 ms
78,372 KB
testcase_03 AC 1,874 ms
86,052 KB
testcase_04 AC 1,875 ms
76,448 KB
testcase_05 AC 1,878 ms
79,224 KB
testcase_06 AC 1,875 ms
79,676 KB
testcase_07 AC 1,886 ms
92,920 KB
testcase_08 AC 1,877 ms
81,580 KB
testcase_09 AC 1,880 ms
85,748 KB
testcase_10 AC 1,876 ms
84,664 KB
testcase_11 AC 1,880 ms
85,152 KB
testcase_12 AC 1,877 ms
81,144 KB
testcase_13 AC 1,876 ms
86,752 KB
testcase_14 AC 1,877 ms
78,120 KB
testcase_15 AC 1,878 ms
86,376 KB
testcase_16 AC 1,875 ms
76,540 KB
testcase_17 AC 1,877 ms
83,404 KB
testcase_18 AC 1,874 ms
79,892 KB
testcase_19 AC 1,883 ms
88,652 KB
testcase_20 AC 1,879 ms
80,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, time
s = time.time()
sys.setrecursionlimit(2147483647)
input = lambda:sys.stdin.readline().rstrip()
def resolve():
    n = int(input())
    ans = 0
    i = 1
    while time.time() - s < 1.8:
        ans += 1 / pow(i, n)
        i += 1
    print(ans)
resolve()
0