0101少儿编程
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
IDE下载
Login
Register
5362: 【25课】【3154】 偶数求和
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:195
Solved:118
Submit
Submit Record
Statistics
ShowOff!
Description
输入
n
个整数,求出其中所有偶数的和。
Input
输入第一行一个一个整数
n
(
1
≤
n
≤
10
5
) 表示数的个数。
接下来一行
n
个 int 范围内的整数。
Output
一个整数,表示这些数的和
Sample Input
Copy
5 1 4 2 7 8
Sample Output
Copy
14
Source/Category
一本通编程启蒙
循环结构
Submit
Submit Record
Statistics
ShowOff!