#B2601. Apple Distribution Problem

    ID: 11244 Type: Default 1000ms 256MiB

Apple Distribution Problem

Apple Distribution Problem

You have \(14\) apples that need to be equally distributed among \(4\) students. Any apples that cannot be evenly divided are returned to the refrigerator.

You are required to write a program that computes and outputs the following on separate lines:

  1. The number of apples each student receives.
  2. The total number of apples distributed among the students.
  3. The number of apples that are put back in the refrigerator.

Note: Use the \(\lfloor \cdot \rfloor\) (floor) operation if needed, as the division is integer division.

inputFormat

This problem does not require any input.

outputFormat

The program should print three numbers, each on a new line, corresponding to:

  1. The number of apples each student gets.
  2. The total number of apples distributed.
  3. The number of apples returned to the refrigerator.

sample

3

12 2

</p>