2 2 5 0 0 MOVE 1 1 MOVE 0 1 0 1 TRIGGER MOVE: MOVE 0 1 SLACKOFF
Robot 0 moves its right hand towards Robot 1. Robot 1 moves its left hand towards Robot 1. Robot 0 moves its left hand towards Robot 1. Robot 1 moves its left hand towards Robot 0. Robot 1 slacks off.
2 2 4 0 1 ACTIVATE 1 SLACKOFF 0 1 SWAP 0 2 2 MIRROR 0 1
Robot 0 activates Robot 1. Robot 1 swaps a line of command with Robot 0. Robot 1 slacks off. Robot 0 modifies a line of command of Robot 0.
3 2 6 1 2 ACTIVATE 0 ACTIVATE 0 2 1 SWAP 0 2 2 TRIGGER ACTIVATE: REPLACE 0 2 SLACKOFF 0 1 TRIGGER MIRROR: SLACKOFF SLACKOFF
Robot 0 activates Robot 1. Robot 1 swaps a line of command with Robot 2. Robot 1 slacks off. Robot 2 replaces a line of command of Robot 0. Robot 0 slacks off. Robot 1 swaps a line of command with Robot 2.
3 2 8 0 1 SLACKOFF TRIGGER MOVE: SLACKOFF 1 2 TRIGGER TRIGGER: SLACKOFF TRIGGER SLACKOFF: MOVE 0 1 2 0 TRIGGER SLACKOFF: MOVE 1 2 TRIGGER TRIGGER: MOVE 1 1
Robot 0 slacks off. Robot 1 moves its left hand towards Robot 2. Robot 2 moves its right hand towards Robot 1. Robot 1 slacks off. Robot 2 moves its right hand towards Robot 0. Robot 0 slacks off. Robot 1 slacks off. Robot 2 moves its right hand towards Robot 2.
见附加文件的 5.in。
见附加文件的 5.ans。
{
"problem": {
"name": "[THUPC 2024 初赛] 机器人",
"description": {
"content": "有 $n$ 个机器人围成一圈,编号按照逆时针顺序分别为 $0\\sim n-1$。 每个机器人有两只手。编号为 $i$ 的机器人初始「左手」指向编号 $l_i$ 的机器人,「右手」指向编号 $r_i$ 的机器人。 所有的机器人内部都写有 $m$ 行「指令」,「指令」有以下这些形式: ### 指令 「指令」分为「基础指令」和「高级指令」两种。「高级指令」的功能会更复杂一些,但它们本质上没有多大",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 1000,
"memory_limit": 524288
},
"difficulty": {
"LuoguStyle": "P6"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP9966"
},
"statements": [
{
"statement_type": "Markdown",
"content": "有 $n$ 个机器人围成一圈,编号按照逆时针顺序分别为 $0\\sim n-1$。\n\n每个机器人有两只手。编号为 $i$ 的机器人初始「左手」指向编号 $l_i$ 的机器人,「右手」指向编号 $r_i$ 的机器人。\n\n所有的机器人内部都写有 $m$ 行「指令」,「指令」有以下这些形式:\n\n### 指令\n\n「指令」分为「基础指令」和「高级指令」两种。「高级指令」的功能会更复杂一些,但它们本质上没有多大...",
"is_translate": false,
"language": "English"
}
]
}