#include using namespace std; template void fin(T a){ cout<>n>>k; set s; while(n--){int a;cin>>a;s.insert(a);} cout<<*s.rbegin()-*s.begin()<