freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-354-distances-in-a-...

26 lines
690 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f4cf1000cf542c50ffe1
title: 问题354蜜蜂蜂窝中的距离
challengeType: 5
videoUrl: ''
---
# --description--
考虑一个蜜蜂的蜂窝每个细胞是一个完整的正六边形边长为1。
一只特定的细胞被蜂王占据。对于正实数L让BL计算距蜂王细胞距离为L的细胞所有距离从中心到中心测量;你可以假设蜂窝大到足以容纳我们想要考虑的任何距离。例如B√3= 6B√21= 12B111 111 111= 54。
求出L≤5·1011的数使得BL= 450。
# --hints--
`euler354()`应该返回58065134。
```js
assert.strictEqual(euler354(), 58065134);
```
# --solutions--