五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

leetcode 824. Goat Latin

2021-05-10 16:54 作者:您是打尖兒還是住店呢  | 我要投稿

A sentence?S?is given, composed of words separated by spaces. Each word consists of lowercase and uppercase letters only.

We would like to convert the sentence to "Goat Latin"?(a made-up language similar to Pig Latin.)

The rules of Goat Latin are as follows:

  • If a word begins with a vowel (a, e, i, o, or u), append?"ma"?to the end of the word.
    For example, the word 'apple' becomes 'applema'.
    ?

  • If a word begins with a consonant (i.e. not a vowel), remove the first letter and append it to the end, then add?"ma".
    For example, the word?"goat"?becomes?"oatgma".
    ?

  • Add one letter?'a'?to the end of each word per its word index in the sentence, starting with 1.
    For example,?the first word gets?"a"?added to the end, the second word gets?"aa"?added to the end and so on.

Return the?final sentence representing the conversion from?S?to Goat?Latin.?



難得開心的一天,在病痛的折磨下;

leetcode 824. Goat Latin的評論 (共 條)

分享到微博請遵守國家法律
图木舒克市| 阿瓦提县| 高唐县| 太保市| 沂源县| 咸宁市| 林口县| 武冈市| 离岛区| 西藏| 五台县| 黑河市| 武功县| 广元市| 讷河市| 新化县| 涟源市| 资讯 | 安新县| 陈巴尔虎旗| 依兰县| 宾川县| 呼玛县| 涡阳县| 扶沟县| 神池县| 铜梁县| 玉环县| 肃北| 台前县| 衡山县| 天水市| 乌兰县| 灵川县| 重庆市| 桂林市| 泸定县| 信阳市| 准格尔旗| 祁阳县| 沂水县|