4 SSRS
2 -1 Takahashi is initially at $(0, 0)$ facing east. Then, he moves as follows. 1. $t_1 =$ `S`, so he advances in the direction of east by distance $1$, arriving at $(1, 0)$. 2. $t_2 =$ `S`, so he advances in the direction of east by distance $1$, arriving at $(2, 0)$. 3. $t_3 =$ `R`, so he turns $90$ degrees clockwise, resulting in facing south. 4. $t_4 =$ `S`, so he advances in the direction of south by distance $1$, arriving at $(2, -1)$. Thus, Takahashi's final position, $(x, y) = (2, -1)$, should be printed.
20 SRSRSSRSSSRSRRRRRSRR
0 1
{
"problem": {
"name": "Go Straight and Turn Right",
"description": {
"content": "Consider an $xy$\\-plane. The positive direction of the $x$\\-axis is in the direction of east, and the positive direction of the $y$\\-axis is in the direction of north. Takahashi is initially at poin",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc244_b"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Consider an $xy$\\-plane. The positive direction of the $x$\\-axis is in the direction of east, and the positive direction of the $y$\\-axis is in the direction of north. \nTakahashi is initially at poin...",
"is_translate": false,
"language": "English"
}
]
}