結果
| 問題 | No.347 微分と積分 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-11-18 01:53:38 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 105 ms / 5,000 ms |
| コード長 | 230 bytes |
| 記録 | |
| コンパイル時間 | 192 ms |
| コンパイル使用メモリ | 77,324 KB |
| 最終ジャッジ日時 | 2025-12-03 17:51:43 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
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))