#include <iostream>
using namespace std;
int main() {
int n;
cin>>n;
int p[1000000];
for(int i=0;i<n;i++){
cin>>p[i];
}
int a= 0;
int b=p[0];
for (int i = 1; i < n; i++) {
b=min(b,p[i-1]);
int c=p[i]-b;
a=max(a,c);
}
cout<<a<<endl;
return 0;
}
运行不了 一运行就|
\/如下
Process exited after 1.231 seconds with return value 3221225725
请按任意键继续. . .