import java.util.Scanner; import java.util.Arrays; public class Dim1{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); int n,res=100001; n = sc.nextInt(); int[] a = new int[n]; for(int i = 0;i1){ if(a[0] != a[1])res = Math.abs(a[0] - a[1]); for(int i =0;i