QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#744132#8986. Call for Problemslwl2005AC ✓0ms3944kbC++98292b2024-11-13 20:57:202024-11-13 20:57:24

Judging History

This is the latest submission verdict.

  • [2024-11-13 20:57:24]
  • Judged
  • Verdict: AC
  • Time: 0ms
  • Memory: 3944kb
  • [2024-11-13 20:57:20]
  • Submitted

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'