結果

問題 No.1273 はじめのζ関数
ユーザー tanon710tanon710
提出日時 2020-10-30 22:17:02
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 348 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 86,836 KB
実行使用メモリ 76,440 KB
最終ジャッジ日時 2023-09-29 06:32:54
合計ジャッジ時間 5,099 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
76,240 KB
testcase_01 AC 84 ms
76,156 KB
testcase_02 AC 82 ms
76,124 KB
testcase_03 AC 67 ms
71,248 KB
testcase_04 AC 83 ms
76,440 KB
testcase_05 WA -
testcase_06 AC 73 ms
75,648 KB
testcase_07 AC 83 ms
76,360 KB
testcase_08 AC 65 ms
71,316 KB
testcase_09 AC 77 ms
76,328 KB
testcase_10 AC 67 ms
71,320 KB
testcase_11 AC 82 ms
76,032 KB
testcase_12 AC 85 ms
76,172 KB
testcase_13 AC 65 ms
71,156 KB
testcase_14 AC 82 ms
76,372 KB
testcase_15 AC 80 ms
76,396 KB
testcase_16 AC 82 ms
76,200 KB
testcase_17 AC 86 ms
76,124 KB
testcase_18 AC 79 ms
76,096 KB
testcase_19 AC 80 ms
76,368 KB
testcase_20 WA -
testcase_21 AC 66 ms
71,308 KB
testcase_22 AC 66 ms
71,364 KB
testcase_23 AC 68 ms
71,316 KB
testcase_24 AC 69 ms
71,468 KB
testcase_25 AC 67 ms
71,416 KB
testcase_26 AC 68 ms
71,472 KB
testcase_27 AC 65 ms
71,312 KB
testcase_28 AC 70 ms
71,588 KB
testcase_29 AC 67 ms
71,132 KB
testcase_30 AC 67 ms
71,300 KB
testcase_31 AC 67 ms
71,356 KB
testcase_32 AC 67 ms
71,292 KB
testcase_33 AC 66 ms
71,472 KB
testcase_34 AC 68 ms
71,228 KB
testcase_35 AC 68 ms
71,484 KB
testcase_36 AC 66 ms
71,232 KB
testcase_37 AC 66 ms
71,392 KB
testcase_38 AC 65 ms
71,344 KB
testcase_39 AC 69 ms
70,944 KB
testcase_40 AC 85 ms
76,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

def zeta(n):
    if n==2:
        return math.pi**2/6-1
    elif n==3:
        return 0.202056903159594
    else:
        ret=0
        for i in range(2,100):
            ret+=1/(i**n)
        return ret

n=int(input())
if n>=100:
    print(0)
else:
    ans=0
    for i in range(n,100):
        ans+=zeta(i)
    print(int(ans*(10**6)))
0