#41763: python解


1554101-0@g.puiching.edu.mo (P6A29_1300題了)


print(int(bool(a % (b + 1))))

a和b是輸入的2個數。