結果
| 問題 |
No.347 微分と積分
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-04 11:20:48 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 5,000 ms |
| コード長 | 339 bytes |
| コンパイル時間 | 220 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-09-24 14:02:07 |
| 合計ジャッジ時間 | 1,790 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#!/usr/bin/python3 # -*- coding: utf-8 -*- # † from math import log eps = 1e-9 dnya = lambda arr: sum(a * b**(a-1) for a in arr) inya = lambda arr: sum(log(b) if abs(a+1)<eps else b**(a+1)/(a+1) for a in arr) n = int(input()) b = int(input()) a = list(map(float, input().split())) res1, res2 = dnya(a), inya(a) print(res1) print(res2)