#include <stdio.h> int main() { long long int x, y, n, k, count = 0; scanf("%lld %lld", &n, &k); if (k == 0) { printf("%lld", n * n); } else { for (y = k + 1; y <= n; y++)//y小于等于k的所有情况,x%y的值都不会大于等于k,所以直接从y=k+1开始 { long long int ret = n % y >= ...