Count Multiples In Range

Computer Mathematics Medium 3 views
Back to Questions

Problem Description

Given L R k, count integers in [L,R] divisible by k.

Input Format

Three integers L R k.

Output Format

One integer count.

Sample Test Case

Input:
1 10 3
Output:
3

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next