← 返回 meta 的题目列表Convert English Phrases to Numbers
类型:online_judge
meta
Write a function that converts English number phrases into their equivalent integer. For example: "twenty two" -> 22 and "one million three hundred thousand four hundred two" -> 1300402. Consider cases where 'hundred' may appear in the middle of the phrase.
Input: An English phrase representing a number.
Output: The equivalent integer.
Example
Input
twenty two