📅  最后修改于: 2022-03-11 14:59:22.253000             🧑  作者: Mango
string[] arr_temp = Console.ReadLine().Split(' ');
long[] arr = Array.ConvertAll(arr_temp, Int64.Parse);
long result1 = 0;
long result2 = 0;
long max = arr.Max();
long min = arr.Min();
for (int i = 0; i < arr.Length; i++)
{
result1 += arr[i];
result2 += arr[i];
}
Console.WriteLine("{0} {1}",result1 - max,result2 - min);