| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 63964 | 张江鹏 | 两个数的最小距离 | C++ | Compile Error | 0 MS | 0 KB | 288 | 2024-01-20 16:56:09 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,max=2e9,a[1001]; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0;i<n;i++){ for(int j=i+1;j<n;j++){ int jl=abs(a[i]-a[j]); if(jl<max){ max=jl; } } cout<<max; return 0; }
Main.cc: In function 'int main()': Main.cc:20:1: error: expected '}' at end of input } ^