IntermediateFunctions2000 ms256 MB
Practice Groups
Each mentor group can hold `k` students. Given `n` students, print the minimum number of groups needed.
Statement
Each mentor group can hold `k` students. Given `n` students, print the minimum number of groups needed.
Input
Two integers `n` and `k` on one line.
Output
Print the ceiling of `n / k`.
Constraints
- `1 <= n, k <= 100000`
Examples
Example 1
Input
17 4Output
5Four groups hold 16 students, so a fifth group is needed.
Sample runs use visible examples. Full submissions are checked securely on the server, and private test cases are not shown in the browser.