Help me in solving AO19 problem

My issue

My code

# Update the code below to solve this problem

t = int(input())
for i in range(t):
    N, A, B = map(int, input().split())

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