0101少儿编程
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
IDE下载
Login
Register
5332: 【59课】【3343】第n大的数
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:36
Solved:21
Submit
Submit Record
Statistics
ShowOff!
Description
有
10
个互不相同的整数,不用排序,求出其中第
n
大的数(),即有
n−1
个数比它大,其余的数都比它小。定义一个找数列{
99
,
200
,
95
,
87
,
98
,
−12
,
30
,
87
,
75
,
−25
}中第
n
大的数的函数,利用它输出第
n
大的数?
Input
一行一个整数,表示
n
。若
n
不合法,则重新输入。
Output
一行一个整数,表示该数列中第
n
大的数。
Sample Input
Copy
2
Sample Output
Copy
99
Source/Category
一本通编程启蒙
数组
Submit
Submit Record
Statistics
ShowOff!