LCC '18 Contest 2 J2 - Consonants Consonance

View as PDF

Submit solution

Points: 3
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

Wandy is mad at her finance teacher, so she wants to confuse him while submitting her report. She wants to submit her paper with all the vowels (excluding y) removed, but she is too lazy to remove the vowels herself.

Can you, her programmer friend, help make a program to remove all the vowels from a given word or sentence?

Input Specification

The first and only line will contain a sentence S\ (1 \le |S| \le 10^5) with at least one vowel in it.

The sentence will consist of words (uppercase and lowercase alphabetical characters), separated by spaces. It is guaranteed there is only one space between any 2 words, and no trailing/leading spaces.

Output Specification

The sentence S, with all the vowels removed.

Subtasks

Subtask 1 [30%]

|S| \le 100

Subtask 2 [70%]

No further constraints.

Sample Input

If you looked at the NYSE yesterday, you would see upward trends.

Sample Output

f y lkd t th NYS ystrdy, y wld s pwrd trnds.

Comments

There are no comments at the moment.