Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
38038 yuzhengxun 最大跨度值 C++ 编译错误 0 MS 0 KB 224 2024-01-24 15:56:48

Tests(0/0):


#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>ma){ mb=ma; } } cout<<ma-nb; return 0; }


测评信息: