結果

問題 No.347 微分と積分
コンテスト
ユーザー yuki2006
提出日時 2015-11-18 01:53:38
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 105 ms / 5,000 ms
コード長 230 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 192 ms
コンパイル使用メモリ 77,324 KB
最終ジャッジ日時 2025-12-03 17:51:43
ジャッジサーバーID
(参考情報)
judge4 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import math

N = int(raw_input())
B = int(raw_input())
a = map(float, raw_input().split())

print sum(map(lambda x: x * B ** (x - 1), a))
print sum(map(lambda x: ((1.0 * B) ** (x + 1)) / (x + 1) if (x != -1) else math.log(B), a))
0