結果

問題 No.347 微分と積分
ユーザー convexineqconvexineq
提出日時 2021-02-01 18:08:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 5,000 ms
コード長 169 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 81,984 KB
実行使用メモリ 52,608 KB
最終ジャッジ日時 2024-06-29 22:54:40
合計ジャッジ時間 2,071 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import log
n,b,*a = map(float,open(0).read().split())
print(sum(ai*b**(ai-1) for ai in a))
print(sum(log(b) if ai == -1.0 else b**(ai+1)/(ai+1.0) for ai in a))
0