2.6 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			2.6 KiB
		
	
	
	
	
	
	
	
id, challengeType, title, videoUrl, localeTitle
| id | challengeType | title | videoUrl | localeTitle | 
|---|---|---|---|---|
| 5900f3a31000cf542c50feb6 | 5 | Problem 55: Lychrel numbers | 问题55:Lychrel数字 | 
Description
num以下?注:2007年4月24日略微修改了措辞,以强调Lychrel数的理论性质。 Instructions
Tests
tests:
  - text: <code>countLychrelNumbers(1000)</code>应该返回13。
    testString: 'assert.strictEqual(countLychrelNumbers(1000), 13, "<code>countLychrelNumbers(1000)</code> should return 13.");'
  - text: <code>countLychrelNumbers(5000)</code>应该返回76。
    testString: 'assert.strictEqual(countLychrelNumbers(5000), 76, "<code>countLychrelNumbers(5000)</code> should return 76.");'
  - text: <code>countLychrelNumbers(10000)</code>应该返回249。
    testString: 'assert.strictEqual(countLychrelNumbers(10000), 249, "<code>countLychrelNumbers(10000)</code> 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.");'
Challenge Seed
function countLychrelNumbers(num) {
  // Good luck!
  return true;
}
countLychrelNumbers(10000);
Solution
// solution required