12 0 1 0 1 1 1 1 0 1 1 1 0
Yes For example, `RARCARCCRAGC` is a good string. This is because it is possible to change all elements of $A$ to $1$ by performing the following operations: * Initially, $A=(0,1,0,1,1,1,1,0,1,1,1,0)$. * Perform the first operation with $i=2$. Then, $A=(0,1,1,1,1,1,1,0,1,1,1,0)$. * Perform the first operation with $i=5$. Then, $A=(0,1,1,1,1,1,1,0,1,1,1,0)$. * Perform the second operation with $i=8$. Then, $A=(0,1,1,1,1,1,1,1,1,1,1,0)$. * Perform the second operation with $i=12$. Then, $A=(1,1,1,1,1,1,1,1,1,1,1,1)$. Since there exists a good string, output `Yes`.
3 0 0 0
No Good strings do not exist.
29 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Yes Since $A$ already contains no $0$, every string of length $29$ consisting of uppercase English letters is a good string.
{
"problem": {
"name": "ARC Arc",
"description": {
"content": "You are given a positive integer $N$ and a sequence $A=(A_1,A_2,\\dots,A_N)$ of length $N$, consisting of $0$ and $1$. We call a string $S$ of length $N$, consisting only of uppercase English letters, ",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc192_a"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a positive integer $N$ and a sequence $A=(A_1,A_2,\\dots,A_N)$ of length $N$, consisting of $0$ and $1$.\nWe call a string $S$ of length $N$, consisting only of uppercase English letters, ...",
"is_translate": false,
"language": "English"
}
]
}