##
var n := ReadInteger;
var a := ReadArrInteger(n);
var b := a.Average;
var d := a.Select(t -> t - b).Max;
Print(b, d)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
##
var n := ReadInteger;
var a := ReadArrInteger(n);
var b := a.Average;
var d := a.Select(t -> t - b).Max;
Print(b, d)