結果
| 問題 | No.347 微分と積分 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-08 20:40:53 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 22 ms / 5,000 ms |
| + 206µs | |
| コード長 | 416 bytes |
| 記録 | |
| コンパイル時間 | 60 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,136 KB |
| 最終ジャッジ日時 | 2026-09-23 18:06:43 |
| 合計ジャッジ時間 | 1,946 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
from math import log
n = int(input())
b = int(input())
a = list(map(float, input().split()))
def bibun(x):
return print(sum([i* x**(i-1) for i in a]))
def sekib(x):
c = []
for j in a:
if j == -1:
c.append(log(b))
else:
c.append( 1/(j+1) * b**(j+1) )
return print(sum(c))
def main(x):
bibun(x)
sekib(x)
if __name__ == "__main__":
main(b)