3 4 GBBR 1 2 1 3 1 4 3 RRR 1 2 2 3 5 RGBRG 1 2 2 3 3 4 3 5
Yes 1 3 2 No Yes 1 4 2 3 For the first test case, for example, all ribbons can be removed by performing the operations as follows: * Initially, the colors of the bulbs are green, blue, blue, red, in order (from bulb $1$). * Remove ribbon $1$. After removal, the colors of the bulbs are blue, red, blue, red, in order. * Remove ribbon $3$. After removal, the colors of the bulbs are red, red, blue, green, in order. * Remove ribbon $2$. After removal, the colors of the bulbs are green, red, red, green, in order. The $(e_1, e_2, e_3)$ satisfying the condition are $(1, 3, 2)$ and $(2, 3, 1)$, and either one will be accepted as correct. For the second test case, it is impossible to remove all ribbons no matter how you perform the operations.
{
"problem": {
"name": "Colorful Christmas Tree",
"description": {
"content": "The Christmas season this year is over, and it is finally time for the new year. Takahashi is busy with the big cleanup of putting away the Christmas tree. There is a Christmas tree decorated with bul",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc437_g"
},
"statements": [
{
"statement_type": "Markdown",
"content": "The Christmas season this year is over, and it is finally time for the new year. Takahashi is busy with the big cleanup of putting away the Christmas tree.\nThere is a Christmas tree decorated with bul...",
"is_translate": false,
"language": "English"
}
]
}