47 lines
808 B
Markdown
47 lines
808 B
Markdown
---
|
||
id: 5900f5311000cf542c510044
|
||
title: 问题453:格子四边形
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-453-lattice-quadrilaterals
|
||
---
|
||
|
||
# --description--
|
||
|
||
简单的四边形是具有四个不同顶点的多边形,没有直角并且不会自相交。
|
||
|
||
设Q(m,n)为简单四边形的数量,其顶点为格点,坐标(x,y)满足0≤x≤m且0≤y≤n。
|
||
|
||
例如,Q(2,2)= 94,如下所示:
|
||
|
||
还可以证实Q(3,7)= 39590,Q(12,3)= 309000和Q(123,45)= 70542215894646。
|
||
|
||
找到Q(12345,6789)mod 135707531。
|
||
|
||
# --hints--
|
||
|
||
`euler453()`应该返回104354107。
|
||
|
||
```js
|
||
assert.strictEqual(euler453(), 104354107);
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```js
|
||
function euler453() {
|
||
|
||
return true;
|
||
}
|
||
|
||
euler453();
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```js
|
||
// solution required
|
||
```
|