結果

問題 No.1273 はじめのζ関数
ユーザー Eki1009Eki1009
提出日時 2020-10-30 22:19:43
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 352 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 87,268 KB
実行使用メモリ 76,512 KB
最終ジャッジ日時 2023-09-29 06:37:53
合計ジャッジ時間 5,278 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
75,952 KB
testcase_01 AC 88 ms
76,220 KB
testcase_02 AC 77 ms
71,016 KB
testcase_03 AC 76 ms
71,012 KB
testcase_04 AC 81 ms
75,624 KB
testcase_05 AC 92 ms
76,160 KB
testcase_06 AC 74 ms
71,132 KB
testcase_07 AC 82 ms
75,476 KB
testcase_08 AC 75 ms
70,864 KB
testcase_09 AC 73 ms
71,132 KB
testcase_10 AC 76 ms
70,872 KB
testcase_11 AC 94 ms
76,080 KB
testcase_12 AC 91 ms
75,992 KB
testcase_13 AC 74 ms
71,056 KB
testcase_14 AC 76 ms
71,048 KB
testcase_15 AC 77 ms
70,984 KB
testcase_16 AC 77 ms
70,732 KB
testcase_17 AC 82 ms
75,100 KB
testcase_18 AC 77 ms
71,040 KB
testcase_19 AC 75 ms
70,952 KB
testcase_20 WA -
testcase_21 AC 76 ms
70,860 KB
testcase_22 AC 76 ms
70,960 KB
testcase_23 AC 75 ms
71,012 KB
testcase_24 AC 77 ms
71,140 KB
testcase_25 AC 77 ms
70,980 KB
testcase_26 AC 76 ms
71,128 KB
testcase_27 AC 76 ms
71,060 KB
testcase_28 AC 77 ms
70,732 KB
testcase_29 AC 79 ms
71,136 KB
testcase_30 AC 77 ms
71,012 KB
testcase_31 AC 77 ms
70,888 KB
testcase_32 AC 76 ms
70,984 KB
testcase_33 AC 76 ms
71,056 KB
testcase_34 AC 75 ms
71,184 KB
testcase_35 AC 75 ms
70,864 KB
testcase_36 AC 77 ms
70,864 KB
testcase_37 AC 77 ms
70,924 KB
testcase_38 AC 76 ms
71,044 KB
testcase_39 AC 77 ms
70,972 KB
testcase_40 AC 96 ms
76,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
import sys
input = sys.stdin.readline
def zeta(n):
    if n == 2:
        return 10**10*(math.pi**2)/6
    res = 0
    for i in range(1, 1000):
        if i**n > 10**30:
            break
        res += 10**10/i**n
    return res
ans = 0
x = int(input())
for i in range(x, x+300):
    ans += zeta(i)
ans -= 300*10**10
print(int(ans//10**4))
0