Corrupted · Hard CodeFree
No Reverse Arms
The bakery's delivery robot can push cake crates but has no arms to pull them back. Push every crate onto a delivery spot with as few pushes as possible. Walking is free.
Find the fewest pushes that put a crate on every spot, and moves that do it.
The moves must be legal, deliver every crate and use the fewest pushes.
R C, then R rows of C cells: . floor, # wall. Next: the robot's cell r c.B, then B lines with the crates, then B lines with the delivery spots (row, column, from 1).-1. Line 2: the moves, letters U D L R.R, C ≤ 8; at most 30 floor cells; 1 ≤ B ≤ 4; at most 1 000 000 moves5 7 ####### #.....# #..#..# #.....# ####### 2 3 2 3 3 4 3 2 6 4 2
5 RRDDLLULURRR
Sign in to play. It is free.
Sign in