Problems > Enough Buses

Enough Buses

Difficulty: 900 2000 ms 128 MB

math

N people must travel; each bus seats S. Print the minimum number of buses.

Input: one line with two integers N and S.

Output: ⌈N/S⌉.

Constraints:

  • 1 ≤ N ≤ 1018
  • 1 ≤ S ≤ 109

Sample Tests

Input 1
45 40
Output 1
2
Input 2
40 40
Output 2
1

Read the Editorial

Discussion (opens after you solve — no spoilers before)

No comments yet.

Submit Your Solution

Log in or create a free account to run and submit code.