#include #include #include #include #include using namespace std; int main() { int t,x,y; double b,k,s1,s2; long long sum; cin>>t; while(t--) { cin>>x>>y; /*k=-1,b=y-k*x; s1=sqrt((x*1.0+b/k)*(x*1.0+b/k)+y*y); s2=sqrt(x*x+(y*1.0-b)*(y*1.0-b)); sum=s1*s2;*/ sum=2*x*y; cout<