Type: Default 1000ms 256MiB

练25.3 偶数求和

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.

说明

输入 nn 个整数,求出其中所有偶数的和。

输入格式

输入第一行一个一个整数 nn(1n1051≤n≤10^5 ) 表示数的个数。
接下来一行 nn 个 int 范围内的整数。

输出格式

一个整数,表示这些数的和

样例

5
1 4 2 7 8
14

测试

Not Attended
Status
Done
Rule
Ledo
Problem
10
Start at
2025-4-12 18:30
End at
2025-4-12 20:30
Duration
2 hour(s)
Host
Partic.
0