結果
| 問題 | No.347 微分と積分 |
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2023-01-06 00:27:09 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 273 bytes |
| 記録 | |
| コンパイル時間 | 144 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 52,736 KB |
| 最終ジャッジ日時 | 2026-05-23 11:06:27 |
| 合計ジャッジ時間 | 1,761 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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