F. 不与最大数相同的数字之和

    Type: Default 1000ms 256MiB

不与最大数相同的数字之和

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.

不与最大数相同的数字之和

题目描述

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

输入格式

输入分为两行:

第一行为 N(NN(N 为接下来数的个数,N100)N \le 100)

第二行为 NN 个整数,数与数之间以一个空格分开,每个整数的范围是 1000,000-1000,0001000,0001000,000

输出格式

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

样例 #1

样例输入 #1

3
1 2 3

样例输出 #1

3

12.10

Not Attended
Status
Done
Rule
IOI
Problem
6
Start at
2024-12-10 16:30
End at
2024-12-10 18:30
Duration
2 hour(s)
Host
Partic.
26