QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#736447 | #8986. Call for Problems | ucup-team004 | AC ✓ | 0ms | 3648kb | C++23 | 444b | 2024-11-12 11:08:53 | 2024-11-12 11:08:57 |
Judging History
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'