Easy problem

TimeLimit:1000MS  MemoryLimit:128MB
64-bit integer IO format:%lld
未提交 | 登录后收藏
Problem Description

Given an array of integers of length n,a1, a2... , an.

How many elements are there that, after removing this element, add up to an even number (tips : 0 is even)?

看不懂最后一句话可以划过下面的黑线,英语太蹩脚了*2!!!

请你找出共有多少个元素满足,在去掉该元素后,剩余元素的相加之和为一个偶数

Input

The first line contains the integer n, representing the size of the array.

The second line contains n integers, representing a1,a2...an

(1 <= n <= 105, 0 <= ai <= 109)

Output

Output the number of elements that meet the condition.

SampleInput
10
8 6 10 1 3 9 3 1 7 4 
SampleOutput
4
Submit
题目统计信息详细
总AC数12
通过人数11
尝试人数11
总提交量12
AC率91.67%
AC该题后可以添加标签
贴完标签可以获得20ACB。
并且可以获得本题所有提交代码查看权限。
点击标题可以显示标签。
如果你还没认真思考过这题,请不要查看标签
如果您已经通过了该题,请务为该题贴上标签
作者

T^T Online Judge

[BUG反馈] [FAQ] [闽ICP备17026590号-1]
当前版本:3.24 系统时间: