HDU-2086
来源:互联网 发布:windows选择操作系统 编辑:程序博客网 时间:2024/06/08 09:50
原题点击打开链接
#include <iostream>#include<cstdio>using namespace std;int main(){int n,i;while(cin>>n){double a[3003],c[3003];cin>>a[0]>>a[n+1];for(i=1; i<=n; i++)cin>>c[i];double sum=0;for(i=n; i>0; i--)sum+=c[i]*(n-i+1);a[1]=(n*a[0]+a[n+1]-sum*2)/(n+1);printf("%.2lf\n",a[1]);}return 0;}
- hdu 2086
- HDU-2086
- HDU 2086
- hdu 2086
- Hdu 2086
- HDU-2086
- HDU 2086 A1=?
- hdu 2086 数学归纳法
- HDU 2086 A1 = ?
- hdu-2086 A1 = ?
- hdu 2086 A1 = ?
- HDU 2086 A1 = ?
- hdu-2086-A1 = ?
- HDU 2086 A1 = ?
- hdu 2086 A1=?
- hdu 2086 A1 = ?
- hdu 2086 A1 = ?
- HDU 2086 A1=?
- Oracle开发过程中用户的权限的创建,解锁,赋权
- POJ1042 Gone Fishing
- UVA 10735 最大流 混合欧拉回路 输出路径
- python文件类型及运行方式
- cannot find the definition (implementation) of this function 解决方法
- HDU-2086
- mysql 添加字段 修改字段为not null
- oracle删除用户命令和部分命令
- servlet跳转页面的几种方法
- HDU-2090
- KMP&&EKMP&&Manacher算法模版
- POJ 3450 Corporate Identity 暴力枚举+KMP
- VFP--ARM浮点体系结构机介绍
- 素数与线性筛选法初级版