#include using namespace std; #define ALL(a) (a).begin(),(a).end() #define ALLR(a) (a).rbegin(),(a).rend() #define spa << " " << #define test cout<<"test"<= (ll)(m); i--) typedef long long ll; typedef long double ld; const ll MOD = 1e9+7; //const ll MOD = 998244353; const ll INF = 1e18; using P = pair; template void chmin(T &a,T b){if(a>b)a=b;} template void chmax(T &a,T b){if(a void ans(bool x,T1 y,T2 z){if(x)cout< void debug(vector>v,ll h,ll w){for(ll i=0;iv,ll h,ll w){for(ll i=0;i void debug(vectorv,ll n){cout< vector>vec(ll x, ll y, T w){ vector>v(x,vector(y,w));return v;} ll gcd(ll x,ll y){ll r;while(y!=0&&(r=x%y)!=0){x=y;y=r;}return y==0?x:y;} //m.emplace(x,0).fi->se++; int main(){ cin.tie(NULL); ios_base::sync_with_stdio(false); ll res=0,res1=INF,res2=-INF,buf=0; bool judge = true; ll n,k;cin>>n>>k; for(ll i=2;i*i<=k;i++){ if(k%i==0&&i*i!=k){ ll tmp1=min(i-1,n)-max(1LL,i-n)+1; ll tmp2=min(k/i-1,n)-max(1LL,k/i-n)+1; //cout<0&&tmp2>0)res+=tmp1*tmp2*2; } else if(k%i==0){ ll tmp1=min(i-1,n)-max(1LL,n-i)+1; ll tmp2=min(k/i-1,n)-max(1LL,n-k/i)+1; if(tmp1>0&&tmp2>0)res+=tmp1*tmp2; } } cout<