num
以下?注:2007年4月24日略微修改了措辞,以强调Lychrel数的理论性质。 countLychrelNumbers(1000)
应该返回13。
testString: 'assert.strictEqual(countLychrelNumbers(1000), 13, "countLychrelNumbers(1000)
should return 13.");'
- text: countLychrelNumbers(5000)
应该返回76。
testString: 'assert.strictEqual(countLychrelNumbers(5000), 76, "countLychrelNumbers(5000)
should return 76.");'
- text: countLychrelNumbers(10000)
应该返回249。
testString: 'assert.strictEqual(countLychrelNumbers(10000), 249, "countLychrelNumbers(10000)
should return 249.");'
- text: 你的函数应该计算所有Lychrel数。
testString: 'assert.strictEqual(countLychrelNumbers(3243), 39, "Your function should count all Lychrel numbers.");'
- text: 您的函数应该通过所有测试用例。
testString: 'assert.strictEqual(countLychrelNumbers(7654), 140, "Your function should pass all test cases.");'
```