Write a program to compute the most common statistical measures (minimum, maximum and average) of several integer numbers. These numbers are known increasingly. At every moment, it is also possible to delete the smallest element.
Input consists of a sequence of (possibly, many) numbers, together with deleting instructions, as can be seen in the sample input. The numbers may be repeated. Deleting means removing the smallest element (one instance of it, if it is repeated). If there are no elements, deleting does nothing.
After every instruction of the input, print the minimum, maximum and average of the current elements with four digits after the decimal point, or tell that there are no elements. Follow the format of the sample output.
Author: Unknown
Translator: Salvador Roura
Generation: 2026-01-25T11:33:21.890Z
© Jutge.org, 2006–2026.
https://jutge.org