結果
| 問題 | No.347 微分と積分 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-25 15:38:25 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 124 ms / 5,000 ms |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 526 ms |
| コンパイル使用メモリ | 20,832 KB |
| 実行使用メモリ | 15,580 KB |
| 最終ジャッジ日時 | 2026-03-25 04:40:57 |
| 合計ジャッジ時間 | 8,244 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
from math import log N = int(input()) B = int(input()) A = tuple(map(float, input().split())) df = sum(B ** (a - 1) * a for a in A) F = sum(B ** (a + 1) / (a + 1) if a != -1.0 else log(B) for a in A) print(df) print(F)