結果
問題 | No.347 微分と積分 |
ユーザー |
|
提出日時 | 2015-11-18 01:53:38 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 5,000 ms |
コード長 | 230 bytes |
コンパイル時間 | 594 ms |
コンパイル使用メモリ | 7,072 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 16:55:23 |
合計ジャッジ時間 | 1,746 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
import mathN = 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))