[习4.5]求极差 / 最大跨度值
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.
题目描述
给出 和 个整数 ,求这 个整数中的极差是什么。极差的意思是一组数中的最大值减去最小值的差。
输入格式
第一行输入一个正整数 ,表示整数个数。
第二行输入 个整数 ,以空格隔开。
输出格式
输出一个整数,表示这 个整数的极差。
样例 #1
样例输入 #1
6
4 1 5 1 4 1
样例输出 #1
4
提示
数据保证,,。
龙凤苑中学B班5.28作业
- Status
- Done
- Rule
- IOI
- Problem
- 2
- Start at
- 2024-5-28 18:00
- End at
- 2024-6-1 18:00
- Duration
- 96 hour(s)
- Host
- Partic.
- 12