cswork / OA打开练习工作台

Capital OneOA #13

Count Numbers with Even Number of Digits

估计简单可在线判题

考点(AI 标注)字符串位运算

Given an integer array nums, count the elements whose decimal representation has an even number of digits. The decimal representation of 0 has one digit.

输入格式

The first line contains n (1≤n≤100000), and the second line contains n integers (0≤nums[i]≤10^9). The length and value constraints are common ranges adopted by this site; digit counts are based on the decimal representation.

输出格式

Output the number of elements with an even number of digits.

样例 1

输入:

5
12 345 2 6 7896

输出:

2

样例 2

输入:

4
555 901 482 1771

输出:

1

样例 3

输入:

4
0 10 100 1000

输出:

2