Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
81396 sh25_wuyy 最大跨度值 C++ 通过 0 MS 240 KB 197 2026-01-04 17:41:54

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n,a=0,b=1000,t; cin>>n; for(int i=0;i<n;i++){ cin>>t; if(t>=a)a=t; if(t<=b)b=t; }cout<<a-b<<endl; return 0; }


测评信息: