https://cses.fi/paste/ac3698688cba94b8abaac/
#6for y in range(int(input())):a,b=map(int,input().split())maxx=max(a,b)t=(maxx-1)**2if t%2==0:t=t+b+(maxx-a)else:t=t+maxx-b+aprint(t)
https://cses.fi/paste/ac3698688cba94b8abaac/
#6for y in range(int(input())):a,b=map(int,input().split())maxx=max(a,b)t=(maxx-1)**2if t%2==0:t=t+b+(maxx-a)else:t=t+maxx-b+aprint(t)