@@ -0,0 +1,2202 @@
+import java.io.*;%0Aimport java.math.*;%0Aimport java.security.*;%0Aimport java.text.*;%0Aimport java.util.*;%0Aimport java.util.concurrent.*;%0Aimport java.util.regex.*;%0A%0Apublic class Solution %7B%0A%0A    // Complete the timeInWords function below.%0A    static String timeInWords(int h, int m) %7B%0A        String%5B%5D words_minutes =                  %7B%22zero%22,%22one%22,%22two%22,%22three%22,%22four%22,%22five%22,%22six%22,%22seven%22,%22eight%22,%22nine%22,%22ten%22,%22eleven%22,%22twelve%22,%22thirteen%22%0A                         ,%22fourteen%22,%22quarter%22,%22sixteen%22,%22seventeen%22,%22eighteen%22,%22nineteen%22,%22twenty%22,%22twenty one%22,%22twenty two%22%0A                         ,%22twenty three%22,%22twenty four%22,%22twenty five%22,%22twenty six%22,%22twenty seven%22,%22twenty eight%22,%22twenty nine%22%0A                         ,%22half%22%7D;%0A        //String%5B%5D words_hours = %7B%22zero%22,%22one%22,%22two%22,%22three%22,%22four%22,%22five%22,%22six%22,%22seven%22,%22eight%22,%22nine%22,%22ten%22,%22eleven%22,%22twelve%22%7D%0A        if(m==0)%7B%0A            return words_minutes%5Bh%5D+%22 o' clock%22;%0A        %7D%0A        %0A        if(m%3C=30)%7B%0A            if(m==15) return words_minutes%5Bm%5D+%22 past %22+words_minutes%5Bh%5D;%0A            if(m==30) return words_minutes%5Bm%5D+%22 past %22+words_minutes%5Bh%5D;%0A            if(m==1) return words_minutes%5Bm%5D+%22 minute past %22+words_minutes%5Bh%5D;%0A            return words_minutes%5Bm%5D+%22 minutes past %22+words_minutes%5Bh%5D;%0A        %7D%0A        else%7B%0A            m=60-m;%0A            if(h==12) h=0;%0A            if(m==15) return words_minutes%5Bm%5D+%22 to %22+words_minutes%5Bh+1%5D;%0A            //if(h==12) h=0;%0A            if(m==1) return words_minutes%5Bm%5D+%22 minute to %22+words_minutes%5Bh+1%5D;%0A            return words_minutes%5Bm%5D+%22 minutes to %22+words_minutes%5Bh+1%5D;%0A        %7D%0A    %7D%0A%0A    private static final Scanner scanner = new Scanner(System.in);%0A%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv(%22OUTPUT_PATH%22)));%0A%0A        int h = scanner.nextInt();%0A        scanner.skip(%22(%5Cr%5Cn%7C%5B%5Cn%5Cr%5Cu2028%5Cu2029%5Cu0085%5D)?%22);%0A%0A        int m = scanner.nextInt();%0A        scanner.skip(%22(%5Cr%5Cn%7C%5B%5Cn%5Cr%5Cu2028%5Cu2029%5Cu0085%5D)?%22);%0A%0A        String result = timeInWords(h, m);%0A%0A        bufferedWriter.write(result);%0A        bufferedWriter.newLine();%0A%0A        bufferedWriter.close();%0A%0A        scanner.close();%0A    %7D%0A%7D%0A

add TheTimeInWords.java