2
2 0 270 5
S
T 180
S
S
S
1 -1 0 8
S
S
T 90
S
T 270
S
T 90
S
2
There are 2 moving robots. The first robot has initial position (2, 0), direction 270 and a
sequence of 5 commands. The second one has initial position (1, -1), direction 0 and a
sequence of 8 commands. The minimum total number of commands to be removed that
makes robots share final position is 2: for example, remove the 3-rd command of the
first robot and the 5-th command of the second robot. The common final position in
that case is (2, 1).