PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN
#PCBSAU0000024. Tính số thùng sơn (Paint Can Calculator)
HỌC THEO LỘ TRÌNH
2 lộ trìnhBài tập thuộc lộ trình
Mục lục đề ⌄
Đang đọc
Tính số thùng sơn (Paint Can Calculator)
Paint Can Calculator
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
An integer area needs painting. One can covers at most area units, and cans cannot be purchased fractionally. Find the minimum number of cans using integer arithmetic.
Input
One line containing positive integers .
Output
Print the minimum whole number of cans.
Subtask
- Subtask 1 — 100 points: .
Example
Input
101 10
Output
11
Explanation
Ten cans cover only area units, so one more is required. .