Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-162-hexadecimal-numbers.chinese.md
Oliver Eyton-Williams 61460c8601 fix: insert blank line after ```
search and replace ```\n< with ```\n\n< to ensure there's an empty line
before closing tags
2020-08-16 04:45:20 +05:30

57 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f40e1000cf542c50ff21
challengeType: 5
title: 'Problem 162: Hexadecimal numbers'
videoUrl: ''
localeTitle: 问题162十六进制数
---
## Description
<section id="description">在十六进制数中系统使用16个不同的数字表示数字0,1,2,3,4,5,6,7,8,9ABCDEF写入时的十六进制数AF在十进制数系统中等于10x16 + 15 = 175。在3位十六进制数10A1A0A10和A01中数字0,1和A都存在。就像用十进制数写的数字一样我们写十六进制数而不带前导零。包含最多十六个十六进制数字的十六进制数是多少所有数字0,1和A至少出现一次将答案作为十六进制数字给出。 ABCDE和F大写没有任何前导或尾随代码将数字标记为十六进制且没有前导零例如1A3F而不是1a3f而不是0x1a3f而不是$ 1A3F而不是1A3F而不是0000001A3F </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler162()</code> 应该返回3D58725572C62302。
testString: assert.strictEqual(euler162(), '3D58725572C62302');
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler162() {
// Good luck!
return true;
}
euler162();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>