3 snuke snuke rng
1 2 1
* First, he decides person $1$'s nickname.
* Let $k_1=1$.
* The $k_1$\-time repetition of $S_1$ is `snuke`, which is nobody's nickname, so person $1$'s nickname is set to `snuke`.
* Next, he decides person $2$'s nickname.
* Let $k_2=1$.
* The $k_2$\-time repetition of $S_2$ is `snuke`, which is already a nickname of person $1$, so increment $k_2$ by one to make it $2$.
* The $k_2$\-time repetition of $S_2$ is `snukesnuke`, which is nobody's nickname, so person $2$'s nickname is set to `snukesnuke`.
* Finally, he decides person $3$'s nickname.
* Let $k_3=1$.
* The $k_3$\-time repetition of $S_3$ is `rng`, which is nobody's nickname, so person $3$'s nickname is set to `rng`.
Thus, $k_1$, $k_2$, and $k_3$ result in $1$, $2$, and $1$, respectively.4 aa a a aaa
1 1 3 2 * Person $1$'s nickname is set to `aa`. * Person $2$'s nickname is set to `a`. * Person $3$'s nickname is set to `aaa`, because `a` and `aa` are already nicknames of someone else. * Person $4$'s nickname is set to `aaaaaa`, because `aaa` is already a nickname of someone else.
5 x x x x x
1 2 3 4 5
{
"problem": {
"name": "Ex - snukesnuke",
"description": {
"content": "Takahashi is going to decide nicknames of $N$ people, person $1,\\ldots,N$. Person $i$ wants a nickname $S_i$. To avoid giving the same nickname to multiple people, he is going to decide their nickname",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc312_h"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Takahashi is going to decide nicknames of $N$ people, person $1,\\ldots,N$.\nPerson $i$ wants a nickname $S_i$. To avoid giving the same nickname to multiple people, he is going to decide their nickname...",
"is_translate": false,
"language": "English"
}
]
}