結果
| 問題 |
No.347 微分と積分
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-09 15:13:35 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 5,000 ms |
| コード長 | 277 bytes |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-24 16:45:11 |
| 合計ジャッジ時間 | 1,017 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#coding: utf-8 ##yuki_347 import math N=int(raw_input()) B=int(raw_input()) a=map(float,raw_input().split()) D=0.0 for i in xrange(N): D+=1.0*a[i]*B**(a[i]-1) print D I=0.0 for i in xrange(N): if a[i]==-1.0: I+=math.log(B) else: I+=1.0*B**(a[i]+1)/(a[i]+1) print I