因数个数 C++复制ll getdivisior(ll x){ ll ans=0; for(ll i=1;i*i<=x;i++)if(x%i);else ++ans,ans+=(x/i!=i); return ans; }