题号:NC224698
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
Special Judge, 64bit IO Format: %lld
题目描述
Your judges are preparing a problem set, and they’re trying to evaluate a problem for inclusion in the set.
Each judge rates the problem with an integer between -3 and 3, where:
3 means: I

like this problem!
-3 means: I

like this problem!
0 means: Meh. I

if we use this problem or not.
The overall rating of the problem is the average of all of the judges’ ratings—that is, the sum of the ratings divided by the number of judges providing a rating.
Some judges have already rated the problem. Compute the minimum and maximum possible overall rating that the problem can end up with after the other judges submit their ratings.
输入描述:
The first line of input contains two integers

and

, where

is the total number of judges, and

is the number of judges who have already rated the problem.
Each of the next

lines contains a single integer

. These are the ratings of the

judges that have already rated the problem.
输出描述:
Output two space-separated floating point numbers on a single line, which are the minimum and maximum overall rating the problem could achieve after the remaining judges rate the problem, minimum first. These values must be accurate to an absolute or relative error of
.
备注:
