Chef and Balls
CodeChefOpen on judge ↗
Chef has A balls in his bag and he wants to distribute it among B People. Chef wants to make sure, everyone gets equal amount of balls. Chef is unable to make this calculation and needs your help. Input: 1. The first line will input T test cases. 2. The following T lines will contain A , B as space separated inputs Output: 1. Print a single Integer - the number of balls each gets. If balls ca
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start