### My issue

Can you please explain the logic in breifly

### My code

```
t = int(input())
for j in range(t):
N = int(input())
need1 = 0
need2 = 0
Array = list(map(int,input().split()))
Array2 = list(map(int,input().split()))
for i in range(N):
if Array[i]==0:
need1 = i
elif Array2[i]==0:
need2 = i
if need1>need2:
print("Om")
elif need1<need2:
print("Addy")
elif need1==need2:
print("Draw")
```

Learning course: Arrays using Python

Problem Link: CodeChef: Practical coding for everyone

@meesaladivya

logic is u have to count the maximum consecutive numbers in array1 and array2 that are >0.

and then u have to compare them .

if the maximum length of array1 is greater then the maximum length of array2 then print “OM”

else if they both are equal then print “draw”

or else case print “Addy”.

T=int(input())

for i in range(T):

x = int(input())

c= 0

c1 = 0

n = 0

m= 0

q = list(map(int,input().split()))

w = list(map(int,input().split()))

for i in q:

n = n+i

if i==0:

c = c+1

for j in w:

m = m+j

if j==0:

c1 = c1+1

if c1>c:

print(“Addy”)

elif c1<c:

print(“Om”)

elif c==0 and c1==0:

print(“Draw”)

elif c==c1:

if n>m:

print(“Addy”)

elif m>n:

print(“Om”)

```
bro what is the error here?
```

@sahil2805

can u plzz send your code in formatted form.

its hard to read the code u have sent.