#ifndef ONLINE_JUDGE #define _GLIBCXX_DEBUG #endif #include #include using namespace std; using ll=long long; using ld=long double; using st=string; using P=pair; typedef atcoder::modint mint; ll inf=9e18; template auto vec(const ll (&sizes)[s], const T& init = T()){ if constexpr(i < s) return vector(sizes[i], vec(sizes, init)); else return init; } int main(){ ll t,sx,sy,tx,ty; cin>>t; for(ll T=0;T>sx>>sy>>tx>>ty; for(ll i=0;i<64;i++){ ans=min(ans,abs(sy-i)+abs(ty-i)+abs(sx-tx)); // cout<>=1,tx>>=1; } cout<