@@ -0,0 +1,647 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        int n = in.nextInt();%0A        int k = in.nextInt();%0A        int%5B%5D height = new int%5Bn%5D;%0A        for(int height_i=0; height_i %3C n; height_i++)%7B%0A            height%5Bheight_i%5D = in.nextInt();%0A        %7D%0A        // your code goes here%0A        Arrays.sort(height);%0A        if(k%3E=height%5Bn-1%5D)%7B%0A            System.out.println(0);%0A        %7D%0A        else%7B%0A            System.out.println(Math.abs(k-height%5Bn-1%5D));%0A        %7D%0A    %7D%0A%7D%0A

add TheHurdleRace.java