AtCoder Beginner Contest 105
A
AtCoder Crackers
AtCoder
未评级
原题
←B →
翻译中…

Problem Statement

翻译中…

Takahashi has decided to distribute $N$ AtCoder Crackers to $K$ users of as evenly as possible. When all the crackers are distributed, find the minimum possible (absolute) difference between the largest number of crackers received by a user and the smallest number received by a user.

翻译中…

Constraints

翻译中…
  • $1 \leq N,K \leq 100$
  • All values in input are integers.
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

N K

翻译中…

Output

翻译中…

Print the minimum possible (absolute) difference between the largest number of crackers received by a user and the smallest number received by a user.

翻译中…

样例

Input #1
7 3
Output #1
1
When the users receive two, two and three crackers, respectively, the (absolute) difference between the largest number of crackers received by a user and the smallest number received by a user, is $1$.
Input #2
100 10
Output #2
0
The crackers can be distributed evenly.
Input #3
1 1
Output #3
0
题目信息
题号
abc105_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。