# Update the code below to solve this problem

t = int(input())
for i in range(t):
N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
maxA=max(A)
maxB=max(B)
sumA=0
sumB=0
for i in range(N):
if maxA==A[i]:
continue
sumA=sumA+A[i]
for i in range(N):
if maxB==B[i]:
continue
sumB=sumB+B[i]
if sumA<sumB:
print(‘Alice’)
elif sumB<sumA:
print(“Bob”)
else:
print(“Draw”)

this is my approach and when I run it, the output I get is correct but when I submit it shows wrong answers.
i couldn’t find where I missed

### My code

``````# Update the code below to solve this problem

t = int(input())
for i in range(t):
N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
maxA=max(A)
maxB=max(B)
sumA=0
sumB=0
for i in range(N):
if maxA==A[i]:
continue
sumA=sumA+A[i]
for i in range(N):
if maxB==B[i]:
continue
sumB=sumB+B[i]
if sumA<sumB:
print('Alice')
elif sumB<sumA:
print("Bob")
else:
print("Draw")
``````

Learning course: Solve Programming problems using Python
Problem Link: CodeChef: Practical coding for everyone

@bobbashruti7
Your code will not work for the case in which u have multiple max values .
Like 1 2 3 3 3 .