ll@t; ll d[1344],i; rep(t){ ll@a,@b; i=Divisor(b-a,d); if(d[--i]=a){ --i; } wt(d[i]-a); } }