結果
問題 |
No.347 微分と積分
|
ユーザー |
|
提出日時 | 2016-09-08 20:40:53 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 5,000 ms |
コード長 | 416 bytes |
コンパイル時間 | 327 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-15 22:20:33 |
合計ジャッジ時間 | 1,616 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
from math import log n = int(input()) b = int(input()) a = list(map(float, input().split())) def bibun(x): return print(sum([i* x**(i-1) for i in a])) def sekib(x): c = [] for j in a: if j == -1: c.append(log(b)) else: c.append( 1/(j+1) * b**(j+1) ) return print(sum(c)) def main(x): bibun(x) sekib(x) if __name__ == "__main__": main(b)