8 1 ( 2 1 ( 1 ) 2 1 ( 1 ) 1 )
No Yes No Yes No No No Yes $S$ immediately after processing the $1$st query is `(`, which is not a good bracket sequence. $S$ immediately after processing the $2$nd query is an empty string, which is a good bracket sequence. $S$ immediately after processing the $3$rd query is `(`, which is not a good bracket sequence. $S$ immediately after processing the $4$th query is `()`, which is a good bracket sequence. $S$ immediately after processing the $5$th query is `(`, which is not a good bracket sequence. $S$ immediately after processing the $6$th query is `((`, which is not a good bracket sequence. $S$ immediately after processing the $7$th query is `(()`, which is not a good bracket sequence. $S$ immediately after processing the $8$th query is `(())`, which is a good bracket sequence.
{
"problem": {
"name": "Brackets Stack Query",
"description": {
"content": "A string $T$ is called a good bracket sequence if and only if it satisfies the following condition: * $T$ can be made into an empty string by repeating the following operation zero or more times: ",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 3000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc428_c"
},
"statements": [
{
"statement_type": "Markdown",
"content": "A string $T$ is called a good bracket sequence if and only if it satisfies the following condition:\n\n* $T$ can be made into an empty string by repeating the following operation zero or more times:\n ...",
"is_translate": false,
"language": "English"
}
]
}