Type: RemoteJudge 1000ms 256MiB

【例52.1】 不与最大数相同的数字之和

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

输出一个整数数列中不与最大数相同的数字之和。

输入格式

输入分为两行:第一行为 NN 为接下来数的个数(N100N≤100);
第二行为 NN 个整数,数与数之间以一个空格分开,每个整数的范围是: 1,000,000−1,000,0001,000,0001,000,000

输出格式

输出为 NN 个数中除去最大数其余数字之和。

样例

3
1 2 3
3

202402240000

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
22
Start at
2024-2-24 13:00
End at
2024-2-24 15:30
Duration
2.5 hour(s)
Host
Partic.
9