Pro.ID1645 Title线性递归版求和 Title链接http://10.20.2.8/oj/exercise/problem?problem_id=1645 AC111 Submit278 Ratio39.93% 时间&空间限制描述实现线性递归版 sum( )。注:采用任何其他迭代方式的均判cheat并封号。 数据结构为: #define MAX 40002 int a[ MAX ]; int _size; 接口统一为: int sum ( int arr[ ], int n ) 输入第一行是一个正整数 n ( 1 < n ≤ 40000 ) 第二行是n个整数。 输出样例输入5 样例输出12 提示作者 |