| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 265 人关注过本帖
标题:求指教第二大数的问题
只看楼主 加入收藏
linkui0801
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2012-12-4
结帖率:25%
收藏
 问题点数:0 回复次数:0 
求指教第二大数的问题
  
 时间限制:1秒    内存限制:256兆 题目描述
 Given a set of n integers: A = {a1, a2,..., an}, calculate the second max integer in the set.

输入格式
 The first line is an integer n (2<=n<=5000). The second line contains n integers: a1, a2, ..., an. (|ai| <= 10000).

输出格式
 The second max integer in the set.
 
搜索更多相关主题的帖子: first 内存 second 
2013-01-03 13:59
快速回复:求指教第二大数的问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.013672 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved