QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#744132 | #8986. Call for Problems | lwl2005 | AC ✓ | 0ms | 3944kb | C++98 | 292b | 2024-11-13 20:57:20 | 2024-11-13 20:57:24 |
Judging History
answer
#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
int n,x,num=0;
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
scanf("%d",&x);
if(x%2==1)
num++;
}
printf("%d\n",num);
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3944kb
input:
2 2 3
output:
1
result:
ok single line: '1'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
3 2 4 5
output:
1
result:
ok single line: '1'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3944kb
input:
1 3
output:
1
result:
ok single line: '1'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3940kb
input:
4 5 7 8 9
output:
3
result:
ok single line: '3'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3760kb
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'