#include #include int main() { unsigned long long l, r; unsigned n; scanf("%llu %llu %u", &l, &r, &n); std::vector low(n), high(n); for (unsigned long long i = r, tmp = 0, cnt = 0; l <= i && cnt < n; --i, ++cnt) high[i%n] = i; for (unsigned long long i = l, tmp = 0, cnt = 0; i <= r && cnt < n; ++i, ++cnt) low [i%n] = i; for (unsigned i = 0; i < n; ++i) printf("%llu\n", low[i] && high[i] && low[i] <= high[i] ? (high[i] - low[i]) / n + 1 : 0ULL); }