国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(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的評論 (共 條)

分享到微博請遵守國家法律
天柱县| 玉屏| 垫江县| 汽车| 娱乐| 泾川县| 双牌县| 修武县| 阳信县| 萨嘎县| 乐陵市| 县级市| 杭锦后旗| 安岳县| 正蓝旗| 紫金县| 武功县| 盐城市| 长沙市| 应城市| 卫辉市| 无棣县| 双江| 漯河市| 鱼台县| 白河县| 阿荣旗| 玉环县| 石城县| 随州市| 聊城市| 城固县| 和静县| 城市| 黄浦区| 岳阳市| 江都市| 罗定市| 宁德市| 胶南市| 义乌市|