| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 2048 MB | 89 | 78 | 53 | 91.379% |
The English language is infamous for having an inconsistent spelling system. One feature in the spelling system that you are interested in is the usage of the letter c. The letter c can be pronounced in multiple different ways, which might be confusing for the speaker. However, there are some simplified patterns to help speakers determine which pronunciation to use.
a, o, or u; followed by a consonant letter other than h and y; or at the end of a word. The consonant letters are the English letters excluding the vowel letters: a, e, i, o, and u.e, i, or y.ch is pronounced with a unique sound 〈c〉.You are given $N$ words: $S_1, S_2, \dots , S_N$. For each given word, simplify the spelling system by replacing every occurence of c into k or s (for the sound 〈k〉 and 〈s〉 respectively) according to the patterns above and every occurence of ch into c.
The first line consists of an integer $N$ (1ドル ≤ N ≤ 100$).
Each of the next $N$ lines consists of a string $S_i$. String $S_i$ consists of only lowercase English letters, and its length is between 1ドル$ and 100ドル$.
For each word, output a single line containing a string that represents the simplified spelling system of string $S_i$ according to the patterns above.
10 cyan circle ceramic coccyx delicacy chacha coach blackjack church hiccup
syan sirkle seramik koksyx delikasy caca koac blakkjakk curc hikkup
6 caesar cillian celtic character chef echelon
kaesar sillian seltik carakter cef ecelon
4 cacbcccdcecfcgchcicjckclcmcncocpcqcrcsctcucvcwcxcyczc abdefghijklmnopqrstuvwxyz cchh cc
kakbkkkdsekfkgcsikjkkklkmknkokpkqkrksktkukvkwkxsykzk abdefghijklmnopqrstuvwxyz kch kk
ICPC > Regionals > Asia Pacific > Indonesia > Indonesia National Contest > INC 2024 A번