给定一组整数,排序后输出最大值减最小值。
第一行输入一个整数 nnn。 第二行输入 nnn 个整数。
输出一个整数。
1≤n≤100,整数绝对值不超过109^99
3 3 1 2
2
使用您的 www.mathcoding.online 通用账户