結果
問題 | No.347 微分と積分 |
ユーザー |
|
提出日時 | 2021-06-30 17:07:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 200 bytes |
コンパイル時間 | 163 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-27 03:19:50 |
合計ジャッジ時間 | 1,874 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 RE * 2 |
other | AC * 18 RE * 2 |
ソースコード
N = int(input()) B = int(input()) A = list(map(float, input().split())) X1 = sum(B ** (a - 1) * a for a in A) X2 = sum(B ** (a + 1) / (a + 1) if a != -1.0 else log(B) for a in A) print(X1) print(X2)