search and replace ```\n< with ```\n\n< to ensure there's an empty line before closing tags
1.3 KiB
1.3 KiB
id, challengeType, title, videoUrl, localeTitle
| id | challengeType | title | videoUrl | localeTitle |
|---|---|---|---|---|
| 5900f38b1000cf542c50fe9e | 5 | Problem 31: Coin sums | 问题31:硬币总和 |
Description
Instructions
Tests
tests:
- text: <code>digitnPowers(50)</code>应该返回451。
testString: assert(coinSums(50) == 451);
- text: <code>digitnPowers(100)</code>应该返回4563。
testString: assert(coinSums(100) == 4563);
- text: <code>digitnPowers(150)</code>应该返回21873。
testString: assert(coinSums(150) == 21873);
- text: <code>digitnPowers(200)</code>应该返回73682。
testString: assert(coinSums(200) == 73682);
Challenge Seed
function coinSums(n) {
// Good luck!
return n;
}
coinSums(200);
Solution
// solution required
/section>