链接:https://ac.nowcoder.com/acm/contest/12478/D
 来源:牛客网
时间限制:C/C++ 1秒,其他语言2秒
 空间限制:C/C++ 262144K,其他语言524288K
 64bit IO Format: %lld
 
 
 
 2,1的样例
 
一层一层找规律
t = int(input())
MOD = 1000000007for _ in range(t):x, y = map(int, input().split())print(((x+y)*2+(x+1)*(y+1)+4*x*y)%MOD)