#B2612. Apple Distribution Problem
Apple Distribution Problem
Apple Distribution Problem
You are given a situation where apples are to be distributed among classmates. The problem is described as follows:
If each student receives $3$ apples, there will be $11$ apples remaining. In other words, if the total number of apples is a and the number of students is s, then
$$a=3s+11$$
However, if each student is given $4$ apples, there will be a shortage of $1$ apple. That is,
$$a=4s-1$$
Your task is to determine the number of students (s) and the total number of apples (a).
Note: This problem has a unique solution.
inputFormat
No input is required for this problem.
outputFormat
Output two integers separated by a space: the number of students and the total number of apples.
For the given scenario, the correct output is:
12 47
sample
12 47