Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-257-angular-bisectors.md
2022-10-18 12:59:49 +05:30

47 lines
1.5 KiB
Markdown

---
id: 5900f46e1000cf542c50ff80
title: '問題 257: 角の二等分線'
challengeType: 1
forumTopicId: 301905
dashedName: problem-257-angular-bisectors
---
# --description--
Given is an integer sided triangle $ABC$ with sides $a ≤ b ≤ c$ ($AB = c$, $BC = a$ and $AC = b$).
三角形の角の二等分線は、点 $E$, $F$, $G$ で辺と交わります (下図参照)。
<img class="img-responsive center-block" alt="三角形 ABC の角の二等分線が点 E, F, G で辺と交わる" src="https://cdn.freecodecamp.org/curriculum/project-euler/angular-bisectors.gif" style="background-color: white; padding: 10px;" />
線分 $EF$, $EG$, $FG$ は、$ABC$ を 4 つの小さな三角形 $AEG$, $BFE$, $CGF$, $EFG$ に分割します。 この 4 つの三角形のそれぞれについて、比率 $\frac{\text{面積}(ABC)}{\text{面積}(\text{部分三角形})}$ が有理数であることを証明できます。 しかし、これらの比率の一部またはすべてが整数である三角形が存在します。
周長が $100\\,000\\,000$ 以下で、比率 $\frac{\text{面積}(ABC)}{\text{面積}(AEG)}$ が整数である三角形 $ABC$ はいくつ存在しますか。
# --hints--
`angularBisectors()``139012411` を返す必要があります。
```js
assert.strictEqual(angularBisectors(), 139012411);
```
# --seed--
## --seed-contents--
```js
function angularBisectors() {
return true;
}
angularBisectors();
```
# --solutions--
```js
// solution required
```