* fix: Chinese test suite Add localeTiltes, descriptions, and adjust test text and testStrings to get the automated test suite working. * fix: ran script, updated testStrings and solutions
65 lines
876 B
Markdown
65 lines
876 B
Markdown
---
|
||
id: 5900f4861000cf542c50ff99
|
||
challengeType: 5
|
||
title: 'Problem 282: The Ackermann function'
|
||
videoUrl: ''
|
||
localeTitle: 问题282:阿克曼函数
|
||
---
|
||
|
||
## Description
|
||
<section id="description">
|
||
对于非负整数m,n,Ackermann函数A(m,n)定义如下:
|
||
|
||
|
||
|
||
例如A(1,0)= 2,A(2,2)= 7和A(3,4)= 125。
|
||
|
||
|
||
找到A(n,n)并给出答案mod 148。
|
||
</section>
|
||
|
||
## Instructions
|
||
<section id="instructions">
|
||
</section>
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: <code>euler282()</code>应该返回1098988351。
|
||
testString: assert.strictEqual(euler282(), 1098988351);
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function euler282() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
euler282();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|