My issue
this code give me wrong answer during submission what is wrong in my code?please help somebody
My code
t = int(input())
for i in range(t):
N, M = map(int, input().split())
if N<M:
print(M-N)
elif N>M:
print(2*N-M)
# Update the code below to solve the problem
t = int(input())
for i in range(t):
N, M = map(int, input().split())
if N<M:
print(M-N)
elif N>M:
print(2*N-M)
Learning course: Python for problem solving - 2
Problem Link: CodeChef: Practical coding for everyone