数组累加求和
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
输入一个整数 ,要求你算出 个数字的和。
输入格式
第一行一个整数 ,表示有 个整数 第二行用空格隔开的 个整数
输出格式
一个数,表示数字之和。
样例
输入样例
4
1 -3 1 4
输出样例
3
数据范围与提示
保证每个数字以及和不超过 int 范围,推荐使用数组来完成本题。