@@ -0,0 +1,959 @@
+import java.io.BufferedReader;%0Aimport java.io.InputStreamReader;%0Aimport java.util.Arrays;%0A%0Apublic class WordCorrection %7B%0A%0A    private static final char%5B%5D VOWELS = %22aeiouy%22.toCharArray();%0A%0A    private static boolean isVowel(char cur) %7B%0A        return Arrays.binarySearch(VOWELS, cur) %3E= 0;%0A    %7D%0A%0A    public static void main(String%5B%5D args) throws Exception %7B%0A        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));%0A        int amountOfSymbols = Integer.parseInt(reader.readLine());%0A        String word = reader.readLine();%0A        StringBuilder result = new StringBuilder();%0A        char previous = '%5C0';%0A        for (int i = 0; i %3C amountOfSymbols; i++) %7B%0A            char current = word.charAt(i);%0A            if (isVowel(current) && isVowel(previous)) %7B%0A                continue;%0A            %7D%0A            result.append(current);%0A            previous = current;%0A        %7D%0A        System.out.println(result.toString());%0A    %7D%0A%7D%0A

Add WordCorrection