* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
43 lines
601 B
Markdown
43 lines
601 B
Markdown
---
|
||
id: 5900f4861000cf542c50ff99
|
||
title: 问题282:阿克曼函数
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
dashedName: problem-282-the-ackermann-function
|
||
---
|
||
|
||
# --description--
|
||
|
||
对于非负整数m,n,Ackermann函数A(m,n)定义如下:
|
||
|
||
例如A(1,0)= 2,A(2,2)= 7和A(3,4)= 125。
|
||
|
||
找到A(n,n)并给出答案mod 148。
|
||
|
||
# --hints--
|
||
|
||
`euler282()`应该返回1098988351。
|
||
|
||
```js
|
||
assert.strictEqual(euler282(), 1098988351);
|
||
```
|
||
|
||
# --seed--
|
||
|
||
## --seed-contents--
|
||
|
||
```js
|
||
function euler282() {
|
||
|
||
return true;
|
||
}
|
||
|
||
euler282();
|
||
```
|
||
|
||
# --solutions--
|
||
|
||
```js
|
||
// solution required
|
||
```
|