3 3
10
Here are ten ways to obtain a level-$3$ gem.
* Put three kinds of level-$1$ gems into the cauldron.
* Takahashi has three kinds of level-$1$ gems, so there is one way to choose three kinds of level-$1$ gems. Thus, he can obtain one kind of level-$3$ gem in this way.
* Put one kind of level-$2$ gem and two kinds of level-$1$ gems into the cauldron.
* A level-$2$ gem can be obtained by putting two kinds of level-$1$ gems into the cauldron.
* Takahashi has three kinds of level-$1$ gems, so there are three ways to choose two kinds of level-$1$ gems. Thus, three kinds of level-$2$ gems are available here.
* There are three kinds of level-$2$ gems, and three ways to choose two kinds of level-$1$ gems, so he can obtain $3 \times 3 = 9$ kinds of level-$3$ gems in this way.1 100
100
200000 1000000000
797585162
{
"problem": {
"name": "Ex - Alchemy",
"description": {
"content": "Takahashi has $A$ kinds of level-$1$ gems, and $10^{10^{100}}$ gems of each of those kinds. For an integer $n$ greater than or equal to $2$, he can put $n$ gems that satisfy all of the following con",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 4000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc281_h"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Takahashi has $A$ kinds of level-$1$ gems, and $10^{10^{100}}$ gems of each of those kinds. \nFor an integer $n$ greater than or equal to $2$, he can put $n$ gems that satisfy all of the following con...",
"is_translate": false,
"language": "English"
}
]
}