/* -*- coding: utf-8 -*- * * 2417.cc: No.2417 Div Count - yukicoder */ #include #include using namespace std; /* constant */ /* typedef */ typedef long long ll; /* global variables */ /* subroutines */ /* main */ int main() { ll n, k; scanf("%lld%lld", &n, &k); n -= k; int c = 0; for (ll p = 1; p * p <= n; p++) if (n % p == 0) { ll q = n / p; if (p > k) c++; if (q != p && q > k) c++; } printf("%d\n", c); return 0; }