結果

問題 No.1273 はじめのζ関数
ユーザー titiatitia
提出日時 2020-10-31 01:36:24
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 218 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 87,564 KB
実行使用メモリ 77,416 KB
最終ジャッジ日時 2023-09-29 09:40:37
合計ジャッジ時間 83,419 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,972 ms
76,324 KB
testcase_01 WA -
testcase_02 AC 1,981 ms
76,320 KB
testcase_03 AC 1,975 ms
76,064 KB
testcase_04 AC 1,976 ms
76,072 KB
testcase_05 AC 1,973 ms
76,176 KB
testcase_06 AC 1,983 ms
76,068 KB
testcase_07 AC 1,973 ms
76,228 KB
testcase_08 AC 1,974 ms
76,240 KB
testcase_09 AC 1,985 ms
76,076 KB
testcase_10 AC 1,985 ms
76,176 KB
testcase_11 AC 1,977 ms
76,172 KB
testcase_12 AC 1,972 ms
76,300 KB
testcase_13 AC 1,976 ms
76,412 KB
testcase_14 AC 1,981 ms
76,420 KB
testcase_15 AC 1,978 ms
76,044 KB
testcase_16 AC 1,983 ms
76,244 KB
testcase_17 AC 1,978 ms
76,168 KB
testcase_18 AC 1,980 ms
76,088 KB
testcase_19 AC 1,983 ms
76,168 KB
testcase_20 AC 70 ms
71,596 KB
testcase_21 AC 1,994 ms
76,984 KB
testcase_22 AC 1,985 ms
77,016 KB
testcase_23 AC 1,987 ms
77,112 KB
testcase_24 AC 1,998 ms
77,096 KB
testcase_25 AC 1,992 ms
77,416 KB
testcase_26 AC 1,988 ms
77,240 KB
testcase_27 AC 1,987 ms
77,372 KB
testcase_28 AC 1,985 ms
77,096 KB
testcase_29 AC 1,993 ms
77,240 KB
testcase_30 AC 1,988 ms
77,032 KB
testcase_31 AC 1,997 ms
77,148 KB
testcase_32 AC 1,990 ms
77,208 KB
testcase_33 AC 1,988 ms
77,236 KB
testcase_34 AC 1,988 ms
77,372 KB
testcase_35 AC 1,989 ms
77,404 KB
testcase_36 AC 1,988 ms
77,200 KB
testcase_37 AC 1,994 ms
77,036 KB
testcase_38 AC 1,987 ms
77,232 KB
testcase_39 AC 1,988 ms
77,376 KB
testcase_40 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

x=int(input())
ANS=1

def zeta(x):
    Z=0
    for i in range(2,10000000):
        Z+=i**(-x)
        if i**(-x)<10**(-15):
            break
    return Z

for i in range(2,x):
    ANS-=zeta(i)

print(int(ANS*(10**6)))
0