My issue
Not able to solve the problem
My code
t = int(input())
for i in range(t):
x, y = map(int,input().split())
# Score if problem A is solved first and then problem B is solved
a = 500-x*2 + (x+y)*4
# Score if problem B is solved first and then problem A is solved
b = 1000-y*4 + (x+y)*2
if (a>b):
print(a)
else:
print(b)
Learning course: Learn Data Analytics using SQL and Python
Problem Link: CodeChef: Practical coding for everyone