ll@q; rep(q){ ll@(a,b,c,d,e,f); (c,e)+=1d9/a*a; (d,f)+=1d9/b*b; wt(abs(c/a-e/a)+abs(d/b-f/b)); }