标签:str ace blog scanf scan for space amp print
http://115.28.138.223/view.page?gpid=T47
水。
#include<iostream> #include<cstring> #include<cstdio> #include<algorithm> #include<cmath> using namespace std; int a[1005]; int main() { int n; scanf("%d",&n); for(int i = 1;i <= n;i++) scanf("%d",&a[i]); int maxx = 0; for(int i = 2;i <= n;i++) maxx = max(maxx,abs(a[i]-a[i-1])); printf("%d\n",maxx); return 0; }
标签:str ace blog scanf scan for space amp print
原文地址:http://www.cnblogs.com/zhurb/p/6056104.html