Easy
Fill With the Median
Fill missing math marks with the median of the math marks that are present (0 if none are present). Print each
name math with math as a whole number.Input
Lines 'name math english' ('-' = missing), then END.
Output
Lines.
Sample 1
Input
Mim 88 79 Rafi - 91 Sara 95 - Tuhin 70 - END
Output
Mim 88 Rafi 88 Sara 95 Tuhin 70
Sample 2
Input
A 1 2 END
Output
A 1
Output appears here