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

Luogu
IDLGB2094
Time1000ms
Memory128MB
DifficultyP1
数组
输出一个整数数列中不与最大数相同的数字之和。 ## Input 输入分为两行: 第一行为 $N(N$ 为接下来数的个数,$N \le 100)$; 第二行为 $N$ 个整数,数与数之间以一个空格分开,每个整数的范围是 $-1000,000$ 到 $1000,000$。 ## Output 输出为 $N$ 个数中除去最大数其余数字之和。 [samples]
Samples
Input #1
3
1 2 3 
Output #1
3
API Response (JSON)
{
  "problem": {
    "name": "不与最大数相同的数字之和",
    "description": {
      "content": "输出一个整数数列中不与最大数相同的数字之和。",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 131072
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGB2094"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "输出一个整数数列中不与最大数相同的数字之和。\n\n## Input\n\n输入分为两行:\n\n第一行为 $N(N$ 为接下来数的个数,$N \\le 100)$;\n\n第二行为 $N$ 个整数,数与数之间以一个空格分开,每个整数的范围是 $-1000,000$ 到 $1000,000$。\n\n## Output\n\n输出为 $N$ 个数中除去最大数其余数字之和。\n\n[samples]...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments