QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#736447#8986. Call for Problemsucup-team004AC ✓0ms3648kbC++23444b2024-11-12 11:08:532024-11-12 11:08:57

Judging History

This is the latest submission verdict.

  • [2024-11-12 11:08:57]
  • Judged
  • Verdict: AC
  • Time: 0ms
  • Memory: 3648kb
  • [2024-11-12 11:08:53]
  • Submitted

answer

#include <bits/stdc++.h>

using i64 = long long;
using u64 = unsigned long long;
using u32 = unsigned;
using u128 = unsigned __int128;

int main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(nullptr);
    
    int n;
    std::cin >> n;
    
    int ans = 0;
    for (int i = 0; i < n; i++) {
        int d;
        std::cin >> d;
        ans += d % 2;
    }
    std::cout << ans << "\n";
    
    return 0;
}

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3584kb

input:

2
2
3

output:

1

result:

ok single line: '1'

Test #2:

score: 0
Accepted
time: 0ms
memory: 3592kb

input:

3
2
4
5

output:

1

result:

ok single line: '1'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3536kb

input:

1
3

output:

1

result:

ok single line: '1'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

4
5
7
8
9

output:

3

result:

ok single line: '3'

Test #5:

score: 0
Accepted
time: 0ms
memory: 3648kb

input:

50
4
29
3
10
69
82
74
34
89
62
55
34
30
24
58
81
10
22
39
80
94
29
46
8
18
12
18
87
100
92
21
19
13
92
95
52
30
97
85
71
49
68
42
59
97
44
5
98
42
87

output:

21

result:

ok single line: '21'