package main import . "fmt" import . "slices" func main() { var n,k int Scan(&n,&k) x:=make([]int,n) for i:=range x { Scan(&x[i]) } Println(Max(x)-Min(x)) }