#K80217. Donation Distribution among Community Centers
Donation Distribution among Community Centers
Donation Distribution among Community Centers
Anna has a total donation fund t and she intends to distribute it equally among n community centers. The amount received by each community center is the floor of the division \( \lfloor t/n \rfloor \), and the remainder stays with Anna. Given the values of t and n, your task is to determine how much each community center receives and the leftover amount with Anna.
Constraints:
- \(100 \leq t \leq 10^6\)
- \(1 \leq n \leq 1000\)
Input Format: Two space-separated integers representing t and n.
Output Format: Two integers: the amount each community center receives and the leftover amount with Anna, separated by a space.
inputFormat
The input consists of a single line containing two space-separated integers \( t \) and \( n \), where \( t \) is the total donation funds and \( n \) is the number of community centers.
outputFormat
Output a single line with two space-separated integers. The first integer is the amount each community center receives, and the second is the leftover amount with Anna.
## sample2500 7
357 1