32 lines
1.1 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: 5900f4971000cf542c50ffaa
title: 问题299三个相似的三角形
challengeType: 5
videoUrl: ''
---
# --description--
选择了四个具有整数坐标的点Aa0Bb0C0c和D0d
其中0
仅当a = c时容易证明三个三角形可以相似。
因此给定a = c我们正在寻找三元组abd使得AC上至少存在一个点P具有整数坐标从而使三个三角形ABPCDP和BDP都相似。
例如如果abd234则可以容易地验证点P11满足上述条件。 请注意三点式2,3,42,4,3被认为是截然不同的尽管点P1,1对于两者而言是共同的。
如果b + d <100则存在92个不同的三元组abd从而存在点P. 如果b + d <100000则存在320471个不同的三元组abd从而存在点P. 如果b + d <100000000那么有几个不同的三元组abd使得点P存在
# --hints--
`euler299()`应该返回549936643。
```js
assert.strictEqual(euler299(), 549936643);
```
# --solutions--