poj1862
来源:互联网 发布:关系数据理论 编辑:程序博客网 时间:2024/05/22 21:53
- #include<stdio.h>
- #include<stdlib.h>
- #include<math.h>
- #include<iostream>
- using namespace std;
- int cmp(const void *a,const void *b)
- {
- return *(int *)b-*(int *)a;
- }
- int main()
- {
- int a[110],m,i;
- double res;
- scanf("%d",&m);
- for(i=0;i<m;i++)
- scanf("%d",&a[i]);
- if(m==1) res=a[0];
- else
- {
- qsort(a,m,sizeof(a[0]),cmp);
- res=a[0];
- for(i=1;i<m;i++)
- res=2*sqrt(res*a[i]);
- }
- printf("%.3lf/n",res);
- system("pause");
- return 0;
- }
- poj1862
- poj1862
- poj1862
- (POJ1862)Stripies
- 贪心--poj1862
- poj1862 贪心
- POJ1862-Stripies
- POJ1862 Stripies
- poj1862 哈夫曼水题
- [POJ1862]Stripies
- POJ1862 水
- 1poj1862(贪心)
- poj1862(哈夫曼数)
- poj1862,优先队列
- POJ1862 Stripies 贪心
- POJ1862——Stripies
- POJ1862 Stripies 【贪心】
- [贪心]poj1862 Stripies
- action -- actionform
- 重新开张,谢天谢地。
- C#实现链表
- Winxp
- FCKeditor.net使用教程
- poj1862
- SNS
- FCKEditor常用设置
- (Javascript)prototype的一个优势也是缺点
- 请求重定向与请求转发的比较
- 传输网基础知识5
- Active Directory 复制指南
- eclipse+tomcat+lomboz的安装配置说明
- awk语句杀进程