寒假作业打卡
#include <iostream>
using namespace std;
int main(void) {
int n;
scanf("%d", &n);
int a[n];
for (int i = 0; i < n; ++i)
scanf("%d", &a[i]);
int ans = 0;
for (int i = 1; i < n; ++i)
ans = max(ans, abs(a[i] - a[i - 1]));
printf("%d\n", ans);
}