在英语中,有乐趣和之间的简单区别an和a:使用an开始以元音字前面时,和a当单词以辅音开始。
为了简单起见,an在以元音(aeiou)a开头的单词之前,以辅音开头的单词之前。
输入值
仅包含可打印ASCII字符的字符串,[?]出现在必须选择插入an或的位置a。[?]总是出现在一个字之前。您可以假定该句子在语法上是正确的,并且格式与通常一样。
输出量
[?]用适当的单词(an或a)替换的输入字符串。您不必担心大写!
何时大写
如果单词前面没有字符(输入中的第一个),或者.?!后面带有空格,则将其大写。
例子
Input: Hello, this is [?] world!
Output: Hello, this is a world!
Input: How about we build [?] big building. It will have [?] orange banana hanging out of [?] window.
Output: How about we build a big building. It will have an orange banana hanging out of a window.
Input: [?] giant en le sky.
Output: A giant en le sky.
Input: [?] yarn ball? [?] big one!
Output: A yarn ball? A big one!
Input: [?] hour ago I met [?] European.
Output: A hour ago I met an European.
Input: Hey sir [Richard], how 'bout [?] cat?
Output: Hey sir [Richard], how 'bout a cat?
这是代码高尔夫球,因此以字节为单位的最短代码胜出!
[?] hour ago I met [?] European.只是为了让每个人都畏缩。
[?] hour ago I met [?] horse.
[?]和单词之间有多余的空格 吗?