[Home|Training|Problems|Contests|C Language] | [Login|Register] |
Problems Status Rank |
Problem 1326
English-Number Transkator
Time Limit: 1000ms
Memory Limit: 65536kb Description
在本题中,给出英语表达的一个或多个整数,请将这些数翻译成它们的数字表示。这些数的范围是-999 999 999~999 999 999.下面给出你的程序必须保存的英语单词的完整的列表:
negative,zero,one two three four five six seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen nineteen twenty thirty forty fifty sixty seventy eighty ninety hundred thousand million
Input
输入由若干测试用例组成,负数在单词前加"negative"。输入以空行结束
Output
一行一个答案
Sample Input
six negative seven hundred twenty nine one million one hundred one eight hundred fourteen thousand twenty two Sample Output
6 -729 1000101 814022 Hint
可使用gets(str)!=NULL判断输入是否结束。
|