Phép Chia

PDF

Submit solution

Points: 10.00
Time limit: 1.0s
Memory limit: 64M
Input: stdin
Output: stdout

Authors:
Problem type
Allowed languages
C, C++, Java, Pascal, Python, Scratch, TEXT

Cho 2 số ~n~ và ~k~. Ta luôn có ~n = q * k + r~.

Yêu cầu

In ra giá trị của ~(q + r)~.

Dữ liệu:

Một dòng duy nhất ghi 2 số nguyên ~n~ và ~k~ ~(0< n,k<10^3)~.

Kết quả:

In ra số nguyên theo yêu cầu.

Input

15 6

Output

5

Comments

Please read the guidelines before commenting.


There are no comments at the moment.