#P307. 【例52.1】 不与最大数相同的数字之和
【例52.1】 不与最大数相同的数字之和
Description
Calculate the sum of all numbers in an integer sequence that are not equal to the maximum number.
Input Format
The input consists of two lines: the first line contains , the number of integers to follow ();
The second line contains integers, separated by spaces, with each integer ranging from to .
Output Format
Output the sum of all numbers except the maximum number.
Sample
3
1 2 33