当你想吃垃圾食品的时候,就看看这张照片。# Joke - 肚皮舞运动
d*w
1 楼
告诉元音字母map到数字 (a=1, e=5, i=9, o=15, u=21, y=25),y特殊些,当 前面的
字母是不是元音才计算值。如果是连续的元音使用乘法,否则把几段值相加。
给字符串计算它代表的值,
Example:
"Queue" = 21 * 5 * 21 * 5 = 11025.
"myopia" = 25 * 15 + 9 * 1 = 384.
“I'm Feeling Yucky” split into "I", "ee", "i", "u", and "y" ,first 'Y' is
preceded by a space,
the value is 9 + 5 * 5 + 9 + 21 + 25 = 89.
"gayyou" has a score of 1 + 25 * 15 * 21 = 7876, since the first y makes
the second y a vowel.
字母是不是元音才计算值。如果是连续的元音使用乘法,否则把几段值相加。
给字符串计算它代表的值,
Example:
"Queue" = 21 * 5 * 21 * 5 = 11025.
"myopia" = 25 * 15 + 9 * 1 = 384.
“I'm Feeling Yucky” split into "I", "ee", "i", "u", and "y" ,first 'Y' is
preceded by a space,
the value is 9 + 5 * 5 + 9 + 21 + 25 = 89.
"gayyou" has a score of 1 + 25 * 15 * 21 = 7876, since the first y makes
the second y a vowel.