最大值和最小值的差,包清楚的c语言。
摘要:……
2905: 最大值和最小值的差
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<cmath>using……
2905: 最大值和最小值的差
摘要:```cpp
#include
using namespace std;
int main()
{
int M,max=-10001,min=10001,x;
cin>>M……
Python最简单方法,3行搞定
摘要:```pythonM = int(input())nums = list(map(int,input().split()))print(max(nums) - min(nums))……