結果

問題 No.1273 はじめのζ関数
ユーザー taiga000629taiga000629
提出日時 2020-11-06 21:13:08
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 247 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 395 ms
コンパイル使用メモリ 87,192 KB
実行使用メモリ 76,824 KB
最終ジャッジ日時 2023-09-29 18:00:27
合計ジャッジ時間 7,721 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 207 ms
76,824 KB
testcase_01 AC 207 ms
76,528 KB
testcase_02 AC 231 ms
76,732 KB
testcase_03 AC 247 ms
76,704 KB
testcase_04 AC 207 ms
76,664 KB
testcase_05 AC 90 ms
76,672 KB
testcase_06 AC 237 ms
76,668 KB
testcase_07 AC 212 ms
76,696 KB
testcase_08 AC 238 ms
76,668 KB
testcase_09 AC 237 ms
76,668 KB
testcase_10 AC 241 ms
76,660 KB
testcase_11 AC 150 ms
76,688 KB
testcase_12 AC 206 ms
76,716 KB
testcase_13 AC 239 ms
76,636 KB
testcase_14 AC 220 ms
76,616 KB
testcase_15 AC 220 ms
76,704 KB
testcase_16 AC 215 ms
76,664 KB
testcase_17 AC 219 ms
76,756 KB
testcase_18 AC 226 ms
76,704 KB
testcase_19 AC 232 ms
76,816 KB
testcase_20 AC 67 ms
71,496 KB
testcase_21 AC 78 ms
71,304 KB
testcase_22 AC 67 ms
71,348 KB
testcase_23 AC 70 ms
71,112 KB
testcase_24 AC 68 ms
70,972 KB
testcase_25 AC 73 ms
71,220 KB
testcase_26 AC 84 ms
71,752 KB
testcase_27 AC 84 ms
71,856 KB
testcase_28 AC 82 ms
71,564 KB
testcase_29 AC 86 ms
71,632 KB
testcase_30 AC 80 ms
71,488 KB
testcase_31 AC 72 ms
71,112 KB
testcase_32 AC 85 ms
71,432 KB
testcase_33 AC 74 ms
71,340 KB
testcase_34 AC 74 ms
71,240 KB
testcase_35 AC 68 ms
71,360 KB
testcase_36 AC 79 ms
71,516 KB
testcase_37 AC 82 ms
71,344 KB
testcase_38 AC 76 ms
71,196 KB
testcase_39 AC 75 ms
71,304 KB
testcase_40 AC 88 ms
76,544 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