Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-466-distinct-terms-in-a-multiplication-table.md

32 lines
579 B
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: 5900f53e1000cf542c510051
title: 问题466乘法表中的不同术语
challengeType: 5
videoUrl: ''
---
# --description--
令Pmn为m×n乘法表中的不同项的数量。
例如3×4乘法表如下所示
×12341 12342 24683 36912
有8个不同的术语{1,2,3,4,6,8,9,12}因此P3,4= 8。
给出P64,64= 1263P12,345= 1998P32,1015= 13826382602124302。
求P64,1016
# --hints--
`euler466()`应该返回258381958195474750。
```js
assert.strictEqual(euler466(), 258381958195474750);
```
# --solutions--