package main import . "fmt" func main() { var n int Scan(&n) a:=make([]int,n) for i:=range a { Scan(&a[i]) } max:=a[n-1]-a[0] min:=max for i,x:=range a[1:] { v:=x-a[i] if v