| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 523 人关注过本帖
标题:求题意0.0
只看楼主 加入收藏
草狼
Rank: 9Rank: 9Rank: 9
等 级:蜘蛛侠
威 望:2
帖 子:577
专家分:1040
注 册:2010-4-6
结帖率:94.44%
收藏
已结贴  问题点数:20 回复次数:5 
求题意0.0
                                      A. Second Order Statistics
                                     time limit per test:2 seconds
                                      memory limit per test:256 megabytes
                                     input:standard input
                                     output:standard output
Once Bob needed to find the second order statistics of a sequence of integer numbers. Lets choose each number from the sequence exactly once and sort them. The value on the second position is the second order statistics of the given sequence. In other words it is the smallest element strictly greater than the minimum. Help Bob solve this problem.

Input
The first input line contains integer n (1 ≤ n ≤ 100) — amount of numbers in the sequence. The second line contains n space-separated integer numbers — elements of the sequence. These numbers don't exceed 100 in absolute value.

Output
If the given sequence has the second order statistics, output this order statistics, otherwise output NO.

Sample test(s)
Input
41 2 2 -4
Output
1
Input
51 2 3 1 1
Output
2
搜索更多相关主题的帖子: sequence standard exactly numbers seconds 
2010-06-30 22:13
vs_inzaghi
Rank: 5Rank: 5
来 自:湖北
等 级:职业侠客
威 望:1
帖 子:303
专家分:364
注 册:2009-8-17
收藏
得分:20 
google翻译,轻松搞定……

我很懒,但我讨厌别人说我懒……
2010-07-01 12:10
草狼
Rank: 9Rank: 9Rank: 9
等 级:蜘蛛侠
威 望:2
帖 子:577
专家分:1040
注 册:2010-4-6
收藏
得分:0 
回复 2楼 vs_inzaghi
GOOGLE 的翻译你能理解他的题意吗? 那这题是叫我们干什么啊??
2010-07-01 18:56
vs_inzaghi
Rank: 5Rank: 5
来 自:湖北
等 级:职业侠客
威 望:1
帖 子:303
专家分:364
注 册:2009-8-17
收藏
得分:0 
玩笑而已,我帮你看看……

我很懒,但我讨厌别人说我懒……
2010-07-01 19:41
vs_inzaghi
Rank: 5Rank: 5
来 自:湖北
等 级:职业侠客
威 望:1
帖 子:303
专家分:364
注 册:2009-8-17
收藏
得分:0 
什么是二阶统计啊?不懂这算法……对不起……才疏学浅,帮不了你……

我很懒,但我讨厌别人说我懒……
2010-07-01 19:57
vs_inzaghi
Rank: 5Rank: 5
来 自:湖北
等 级:职业侠客
威 望:1
帖 子:303
专家分:364
注 册:2009-8-17
收藏
得分:0 
这样你也给我分搞的我很不好意思啊……确实没帮到你嘛……汗颜……

我很懒,但我讨厌别人说我懒……
2010-07-04 16:38
快速回复:求题意0.0
数据加载中...
 
   



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

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