RDRUL 2
7 The robot will execute the program `RDRULRDRUL`. It will start on $(0, 0)$ and travel as follows: $(0, 0) \rightarrow (1, 0) \rightarrow (1, 1) \rightarrow (2, 1) \rightarrow (2, 0) \rightarrow (1, 0) \rightarrow (2, 0) \rightarrow (2, 1) \rightarrow (3, 1) \rightarrow (3, 0) \rightarrow (2, 0)$. In the end, seven squares will get cleaned: $(0, 0), (1, 0), (1, 1), (2, 0), (2, 1), (3, 0), (3, 1)$.
LR 1000000000000
2
UUURRDDDRRRUUUURDLLUURRRDDDDDDLLLLLLU 31415926535
219911485785
{
"problem": {
"name": "Cleaning Robot",
"description": {
"content": "There is a cleaning robot on the square $(0, 0)$ in an infinite two-dimensional grid. The robot will be given a program represented as a string consisting of four kind of characters `L`, `R`, `U`, `D`",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc219_f"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There is a cleaning robot on the square $(0, 0)$ in an infinite two-dimensional grid.\nThe robot will be given a program represented as a string consisting of four kind of characters `L`, `R`, `U`, `D`...",
"is_translate": false,
"language": "English"
}
]
}