#abc284b. B - Multi Test Cases
B - Multi Test Cases
Score : points
问题描述
在本问题中,输入文件包含多个测试用例。
首先给出一个整数 ,请针对 个测试用例解决以下问题。
- 给定 个正整数 ,其中有多少个是奇数?
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
In this problem, an input file contains multiple test cases.
You are first given an integer . Solve the following problem for test cases.
- We have positive integers . How many of them are odd?
Constraints
- All values in the input are integers.
Input
The input is given from Standard Input in the following format, where represents the -th test case:
Each test case is in the following format:
Output
Print lines. The -th line should contain the answer for the -th test case.
Sample Input 1
4
3
1 2 3
2
20 23
10
6 10 4 1 5 9 8 6 5 1
1
1000000000
Sample Output 1
2
1
5
0
This input contains four test cases.
The second and third lines correspond to the first test case, where .
We have two odd numbers in , , and , so the first line should contain .
update @ 2024/3/10 11:53:33