dorodaloo 发表于 2017-03-28 21:36

Project Euler - 017

翻译:
如果用英文写出数字1到5: one, two, three, four, five, 那么一共需要3 + 3 + 5 + 4 + 4 = 19个字母。
如果数字1到1000(包含1000)用英文写出,那么一共需要多少个字母?
注意: 空格和连字符不算在内。例如,342 (three hundred and forty-two)包含23个字母; 115 (one hundred and fifteen)包含20个字母。"and" 的使用与英国标准一致。

dorodaloo 发表于 2017-03-31 09:03

占地更新:mrgreen:
页: [1]
查看完整版本: Project Euler - 017