CSQOJ
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
Login
2950: 【编程入门】递归法求最大值
Memory Limit:16 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:2
Solved:2
Submit
Submit Record
Statistics
Web Board
图形化编程
ShowOff!
Description
用
递归方法
求N个数中的最大数及其位置。
Input
第一行一个整数N,N<=1000;
第二行,N个不重复的整数。
Output
最大值和其位置。
Sample Input
Copy
10 2 4 1 6 3 10 9 7 8 5
Sample Output
Copy
10 6
Source/Category
递归