Đếm số lượng số chia hết cho K

View as PDF

Points: 3 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Bài 8: Đếm số lượng số chia hết cho K

  • Mô tả: Trong đoạn \([A, B]\), có bao nhiêu số chia hết cho \(K\).
  • Dữ liệu vào: Ba số \(A, B, K\) (\(1 \le A \le B \le 10^6, 1 \le K \le 10^3\)).
  • Ví dụ: Vào 1 10 3 -> Ra 3 (3, 6, 9).

Comments

Most recent
Loading comments...

There are no comments at the moment.