結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,979 ms
75,956 KB
testcase_01 WA -
testcase_02 AC 1,977 ms
75,804 KB
testcase_03 AC 1,985 ms
75,940 KB
testcase_04 AC 1,986 ms
76,120 KB
testcase_05 AC 1,977 ms
75,800 KB
testcase_06 AC 1,978 ms
75,880 KB
testcase_07 AC 1,975 ms
76,040 KB
testcase_08 AC 1,977 ms
75,900 KB
testcase_09 AC 1,987 ms
76,120 KB
testcase_10 AC 1,981 ms
75,952 KB
testcase_11 AC 1,975 ms
76,020 KB
testcase_12 AC 1,982 ms
76,068 KB
testcase_13 AC 1,978 ms
76,000 KB
testcase_14 AC 1,980 ms
76,024 KB
testcase_15 AC 1,980 ms
75,972 KB
testcase_16 AC 1,975 ms
76,036 KB
testcase_17 AC 1,978 ms
76,036 KB
testcase_18 AC 1,979 ms
75,800 KB
testcase_19 AC 1,978 ms
75,864 KB
testcase_20 AC 78 ms
71,396 KB
testcase_21 AC 1,993 ms
76,948 KB
testcase_22 AC 1,983 ms
77,104 KB
testcase_23 AC 1,988 ms
76,900 KB
testcase_24 AC 1,989 ms
77,060 KB
testcase_25 AC 1,992 ms
77,060 KB
testcase_26 AC 1,993 ms
77,020 KB
testcase_27 AC 1,994 ms
77,012 KB
testcase_28 AC 1,993 ms
76,916 KB
testcase_29 AC 1,992 ms
76,896 KB
testcase_30 AC 1,999 ms
77,328 KB
testcase_31 TLE -
testcase_32 TLE -
testcase_33 AC 1,997 ms
76,952 KB
testcase_34 AC 1,994 ms
77,212 KB
testcase_35 AC 1,986 ms
77,016 KB
testcase_36 TLE -
testcase_37 AC 1,991 ms
77,160 KB
testcase_38 AC 1,992 ms
77,084 KB
testcase_39 AC 1,983 ms
76,676 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**(-14):
            break
    return Z

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

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