結果

問題 No.1273 はじめのζ関数
ユーザー Eki1009Eki1009
提出日時 2020-10-30 22:07:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 226 bytes
コンパイル時間 381 ms
コンパイル使用メモリ 87,252 KB
実行使用メモリ 76,536 KB
最終ジャッジ日時 2023-09-29 06:14:57
合計ジャッジ時間 19,727 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 614 ms
76,460 KB
testcase_01 AC 616 ms
76,292 KB
testcase_02 AC 637 ms
76,312 KB
testcase_03 AC 710 ms
76,316 KB
testcase_04 AC 624 ms
76,332 KB
testcase_05 AC 608 ms
76,472 KB
testcase_06 AC 690 ms
76,476 KB
testcase_07 AC 611 ms
76,524 KB
testcase_08 AC 720 ms
76,376 KB
testcase_09 AC 654 ms
76,348 KB
testcase_10 AC 717 ms
76,284 KB
testcase_11 AC 611 ms
76,356 KB
testcase_12 AC 616 ms
76,376 KB
testcase_13 AC 719 ms
76,272 KB
testcase_14 AC 621 ms
76,320 KB
testcase_15 AC 621 ms
76,440 KB
testcase_16 AC 619 ms
76,336 KB
testcase_17 AC 620 ms
76,536 KB
testcase_18 AC 637 ms
76,292 KB
testcase_19 AC 636 ms
76,488 KB
testcase_20 WA -
testcase_21 TLE -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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