結果

問題 No.1273 はじめのζ関数
ユーザー taiga000629taiga000629
提出日時 2020-11-06 21:13:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 223 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 734 ms
コンパイル使用メモリ 82,244 KB
実行使用メモリ 75,624 KB
最終ジャッジ日時 2024-07-22 11:58:52
合計ジャッジ時間 6,157 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 176 ms
75,624 KB
testcase_01 AC 182 ms
75,420 KB
testcase_02 AC 206 ms
75,464 KB
testcase_03 AC 218 ms
75,520 KB
testcase_04 AC 182 ms
75,352 KB
testcase_05 AC 72 ms
75,352 KB
testcase_06 AC 213 ms
75,400 KB
testcase_07 AC 183 ms
75,444 KB
testcase_08 AC 208 ms
75,468 KB
testcase_09 AC 214 ms
75,604 KB
testcase_10 AC 211 ms
75,460 KB
testcase_11 AC 122 ms
75,392 KB
testcase_12 AC 186 ms
75,400 KB
testcase_13 AC 223 ms
75,224 KB
testcase_14 AC 191 ms
75,516 KB
testcase_15 AC 192 ms
75,276 KB
testcase_16 AC 188 ms
75,384 KB
testcase_17 AC 188 ms
75,448 KB
testcase_18 AC 196 ms
75,344 KB
testcase_19 AC 207 ms
75,508 KB
testcase_20 AC 37 ms
53,284 KB
testcase_21 AC 54 ms
67,576 KB
testcase_22 AC 39 ms
53,364 KB
testcase_23 AC 42 ms
56,040 KB
testcase_24 AC 41 ms
54,784 KB
testcase_25 AC 41 ms
56,696 KB
testcase_26 AC 62 ms
70,816 KB
testcase_27 AC 62 ms
70,800 KB
testcase_28 AC 54 ms
68,528 KB
testcase_29 AC 61 ms
70,796 KB
testcase_30 AC 52 ms
68,556 KB
testcase_31 AC 44 ms
56,704 KB
testcase_32 AC 56 ms
68,976 KB
testcase_33 AC 43 ms
58,956 KB
testcase_34 AC 43 ms
57,512 KB
testcase_35 AC 38 ms
52,764 KB
testcase_36 AC 53 ms
66,656 KB
testcase_37 AC 55 ms
68,116 KB
testcase_38 AC 47 ms
63,052 KB
testcase_39 AC 46 ms
59,604 KB
testcase_40 AC 63 ms
75,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x=int(input())
ans=0
if 3<=x<=100:
    for k in range(2,100000):
        ans+=10**18/(k**(x-1)*(k-1))
elif x==2:
    ans=10**18
else:
    for k in range(2,100):
        ans+=10**18/(k**(x-1)*(k-1))

print(int(ans)//10**12)



0