Computer Science, asked by kusumakaruparthi, 5 hours ago

int air
The first line of input contains the number of test cases.
The first line of each test-case contains the size of array(N).
The second line of each test-case will contain N space-separated
positive integer values.
int
cha
siz
OUTPUT FORMATS
ch 대
For each test at new line print the 1 based index of number that
differs from other in form of evenness
10
11
12
13
14
15
16
i
SAMPLE INPUT:
17
2
6
18
19
20
21
4 6 90 2 1 78
4
2 1 67 47
SAMPLE OUTPUT:
5
1
EXPLANATION:
For test-case 1 all the numbers are even except the number present at
index 5, and for the test-case 2 all the numbers are odd exc.
Il mymapitin is sharing yo
number present at index 1.​

Answers

Answered by anjalic386
1

Answer:

The first line of input contains the number of test cases.

The first line of each test-case contains the size of array(N).

The second line of each test-case will contain N space-separated

positive integer values.

int

cha

siz

OUTPUT FORMATS

ch 대

For each test at new line print the 1 based index of number that

differs from other in form of evenness

10

11

12

13

14

15

16

i

SAMPLE INPUT:

17

2

6

18

19

20

21

4 6 90 2 1 78

4

2 1 67 47

SAMPLE OUTPUT:

5

1

EXPLANATION:

For test-case 1 all the numbers are even except the number present at

index 5, and for the test-case 2 all the numbers are odd exc.

Il mymapitin is sharing yo

number present at index 1.

Hope this is helpful bro

Mark me as brainlist

Similar questions