結果

問題 No.347 微分と積分
コンテスト
ユーザー yuki2006
提出日時 2015-11-18 01:53:38
言語 PyPy2
(7.3.20)
コンパイル:
pypy2 -m py_compile _filename_
実行:
/usr/bin/pypy2 Main.pyc
結果
AC  
実行時間 60 ms / 5,000 ms
+ 910µs
コード長 230 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 74 ms
コンパイル使用メモリ 81,664 KB
実行使用メモリ 81,664 KB
最終ジャッジ日時 2026-07-17 23:40:37
合計ジャッジ時間 2,911 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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