Max Num---hdu2071
Max Num
Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 16818    Accepted Submission(s): 10381
#include<stdio.h>
int main()
{
int n,a,i,j;
double s[],max;
scanf("%d",&n);
while(n--)
{
scanf("%d",&a);
for(i=;i<a;i++)
scanf("%lf",&s[i]);
max=s[];
for(i=;i<a;i++)
max=max>s[i]?max:s[i];
printf("%.2lf\n",max);
}
return ;
}
Max Num---hdu2071的更多相关文章
- JSU省赛队员选拔赛个人赛1(Coin Change、Fibbonacci Number、Max Num、单词数、无限的路、叠筐)
		
JSU省赛队员选拔赛个人赛1 一.题目概述: A.Coin Change(暴力求解.动态规划) B.Fibbonacci Number(递推求解) C.Max Num(排序.比较) D.单词数 ...
 - HDOJ 2071 Max Num
		
Problem Description There are some students in a class, Can you help teacher find the highest studen ...
 - Max Num
		
Problem Description There are some students in a class, Can you help teacher find the highest studen ...
 - HDU 2071  Max Num
		
http://acm.hdu.edu.cn/showproblem.php?pid=2071 Problem Description There are some students in a clas ...
 - HDOJ-1003 Max Sum(最大连续子段 动态规划)
		
http://acm.hdu.edu.cn/showproblem.php?pid=1003 给出一个包含n个数字的序列{a1,a2,..,ai,..,an},-1000<=ai<=100 ...
 - [ACM] hdu 1003 Max Sum(最大子段和模型)
		
Max Sum Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Su ...
 - Max Chunks To Make Sorted II LT768
		
This question is the same as "Max Chunks to Make Sorted" except the integers of the given ...
 - Max Chunks To Make Sorted LT769
		
Given an array arr that is a permutation of [0, 1, ..., arr.length - 1], we split the array into som ...
 - 判定一个数num是否为x的幂
		
那个数所在类型中,x的幂最大值为max 1.则第一条判定:max%num==0: 若x不为任何数的幂,则第一条判定足矣. 若x为某个数的幂,则要加判定条件 2.(num-1)%(x-1)==0 同时满 ...
 
随机推荐
- [C++程序设计]有关形参与实参,及返回值说明
			
有关形参与实参的说明:(1) 在定义函数时指定的形参,在未出现函数调用 时,它们并不占内存中的存储单元,因此称它们是 形式参数或虚拟参数,表示它们并不是实际存在的数据,只有在发生函数调用时,函数max ...
 - python3.4+pyspider爬58同城(二)
			
之前使用python3.4+selenium实现了爬58同城的详细信息,这次用pyspider实现,网上搜了下,目前比较流行的爬虫框架就是pyspider和scrapy,但是scrapy不支持pyth ...
 - Python for else 循环控制
			
for语句可用来遍历某一对象,还具有一个可选的else块.如果for循环未被break终止,则执行else块中的语句.break 在需要时终止for循环continue 跳过位于其后的语句,开始下一轮 ...
 - GTW likes math(BC 1001)
			
GTW likes math Accepts: 472 Submissions: 2140 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 1 ...
 - #1042 - Can't get hostname for your address
			
my.ini 或 my.cnf 末尾添加 skip-name-resolve 并重启MySQL服务器 ok!
 - PYCURL ERROR 6 - “Couldn't resolve host 'mirrorlist.centos.org'”
			
在虚拟机上安装的CentOS,估计是网络配置问题,导致yum update和yum install之类的功能的用不了.出现标题上面的错误. ifdown [network_adapter] ifup ...
 - Windows搭建Sublime Text 3 + Go开发环境
			
1. 安装Sublime Text 3 Sublime Text 3(以下简称ST)的下载与安装我就不说啦,目前还是一个测试版,不过据说比ST2增加了好多新功能,下载地址: http://www.su ...
 - ysql+heartbeat+DRBD+LVS实现mysql高可用
			
在企业应用中,mysql+heartbeat+DRBD+LVS是一套成熟的集群解决方案,通过heart+DRBD实现mysql的主 节点写操作的高可用性,而通过mysql+LVS实现数据库的主从复制和 ...
 - cf479C Exams
			
C. Exams time limit per test 1 second memory limit per test 256 megabytes input standard input outpu ...
 - Valid Anagram 解答
			
Question Given two strings s and t, write a function to determine if t is an anagram of s. For examp ...