102720: [AtCoder]ABC272 A - Integer Sum
Memory Limit:256 MB
Time Limit:2 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
Score : $100$ points
Problem Statement
You are given $N$ integers $A_1,A_2,\dots$, and $A_N$.
Find the sum of the $N$ integers.
Constraints
- $1 \le N \le 100$
- $1 \le A_i \le 100$
- All values in the input are integers.
Input
The input is given from Standard Input in the following format:
$N$ $A_1$ $A_2$ $\dots$ $A_N$
Output
Print the answer.
Sample Input 1
3 2 7 2
Sample Output 1
11
You are given three integers: $2$, $7$, and $2$.
The answer is $2 + 7 + 2 = 11$.
Sample Input 2
1 3
Sample Output 2
3
Input
题意翻译
给出 $N$ 个正整数 $A_{1\sim N}$,求这 $N$ 个数的和。Output
分数:100分
问题描述
给你 $N$ 个整数 $A_1,A_2,\dots$ 和 $A_N$。
求这 $N$ 个整数的和。
约束条件
- $1 \le N \le 100$
- $1 \le A_i \le 100$
- 输入中的所有值都是整数。
输入
输入通过标准输入给出,格式如下:
$N$ $A_1$ $A_2$ $\dots$ $A_N$
输出
输出答案。
样例输入 1
3 2 7 2
样例输出 1
11
给你三个整数:$2$,$7$ 和 $2$。
答案是 $2 + 7 + 2 = 11$。
样例输入 2
1 3
样例输出 2
3