結果

問題 No.347 微分と積分
ユーザー fumofumofunifumofumofuni
提出日時 2021-09-14 15:00:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 5,000 ms
コード長 278 bytes
コンパイル時間 347 ms
コンパイル使用メモリ 86,592 KB
実行使用メモリ 71,980 KB
最終ジャッジ日時 2023-09-09 12:02:45
合計ジャッジ時間 3,294 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,724 KB
testcase_01 AC 71 ms
71,288 KB
testcase_02 AC 71 ms
71,304 KB
testcase_03 AC 75 ms
71,564 KB
testcase_04 AC 71 ms
71,380 KB
testcase_05 AC 72 ms
71,264 KB
testcase_06 AC 73 ms
71,596 KB
testcase_07 AC 72 ms
71,712 KB
testcase_08 AC 71 ms
71,484 KB
testcase_09 AC 70 ms
71,628 KB
testcase_10 AC 71 ms
71,828 KB
testcase_11 AC 71 ms
71,980 KB
testcase_12 AC 72 ms
71,332 KB
testcase_13 AC 71 ms
71,492 KB
testcase_14 AC 72 ms
71,512 KB
testcase_15 AC 71 ms
71,324 KB
testcase_16 AC 72 ms
71,796 KB
testcase_17 AC 72 ms
71,664 KB
testcase_18 AC 72 ms
71,508 KB
testcase_19 AC 72 ms
71,128 KB
testcase_20 AC 71 ms
71,676 KB
testcase_21 AC 72 ms
71,896 KB
testcase_22 AC 71 ms
71,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N=int(input())
B=float(input())
A=list(map(float,input().split()))
res=0.0
for i in range(N):
    res+=pow(B,A[i]-1)*A[i]
print(res)
res=0.0
for i in range(N):
    if abs(A[i]+1)<0.01:
        res+=math.log(B)
    else:
        res+=pow(B,A[i]+1)/(A[i]+1)
print(res)
0