#C8881. Participation Score Calculation
Participation Score Calculation
Participation Score Calculation
This problem involves calculating student participation scores based on assignment submission information. You are given three integers:
- total_students: the total number of students enrolled.
- no_submission: the number of students who did not submit any assignments.
- no_pass: the number of students who submitted assignments but failed all of them.
The first result is the number of students who received a participation score, computed as:
$$\text{participation} = total\_students - no\_submission$$
The second result is the number of students who received a score strictly greater than 50, computed as:
$$\text{greater} = (total\_students - no\_submission) - no\_pass$$
Input is provided via stdin
and output should be produced to stdout
. Ensure that your solution reads from standard input and writes the results separated by a space.
inputFormat
The input consists of a single line containing three space-separated integers: total_students, no_submission, and no_pass.
outputFormat
Output two integers separated by a space: the number of students who received a participation score, and the number of students who received a score strictly greater than 50.## sample
20 5 8
15 7
</p>