Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
38040 yuzhengxun 最大跨度值 C++ 通过 0 MS 240 KB 222 2024-01-24 16:00:46

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { int n,m,ma=-1,mb=1000; cin>>n; for(int i=1;i<=n;i++){ cin>>m; if(m>ma){ ma=m; }else if(mb>m){ mb=m; } } cout<<ma-mb; return 0; }


测评信息: