最后这么算
ll qwq = 1; for(ll i = 0;i<k-ans;i++){ qwq*=2; } if(qwq==0&&!n){ cout << "18446744073709551616"; return 0; } cout << qwq-n;