给定一个非负整数x,请编写一个算法返回一个string,代表该整数的英文描述。 测试样例: 1234 返回:"One Thousand,Two Hundred Thirty Four"
加载中...
import java.util.*; public class ToString { public String toString(int x) { // write code here } }
class ToString { public: string toString(int x) { // write code here } };
# -*- coding:utf-8 -*- class ToString: def toString(self, x): # write code here
class ToString { public string toString(int x) { // write code here } }