結果
| 問題 |
No.347 微分と積分
|
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2023-01-06 00:27:09 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 273 bytes |
| コンパイル時間 | 183 ms |
| コンパイル使用メモリ | 82,288 KB |
| 実行使用メモリ | 54,184 KB |
| 最終ジャッジ日時 | 2024-11-29 16:52:31 |
| 合計ジャッジ時間 | 1,952 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 WA * 5 |
ソースコード
from math import *
N = int(input())
B = int(input())
A = list(map(float, input().split()))
D, I = 0, 0
for i in range(N):
D += A[i] * B ** (A[i] - 1)
if round(A[i]) == -1:
I += log(B)
else:
I += B ** (A[i] + 1)/(A[i] + 1)
print(D)
print(I)
rlangevin