My issue
explain why this code if failing on an unknown testcase
My code
t = int(input())
while t > 0:
n = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
t -= 1
# Your code goes here
ad = 0
om = 0
count_a = 0
count_b = 0
for i in range(n):
if b[i] != 0:
ad += 1
else:
if count_a < ad:
count_a = ad
ad = 0
if a[i] != 0:
om += 1
else:
if count_b < om:
count_b = om
om = 0
ad = max(count_a, ad)
om = max(count_b, om)
if ad > om:
print("Addy")
elif ad < om:
print("Om")
else:
print("Draw")
Problem Link: CodeChef Streak Practice Coding Problem