Description: poj 3945 bfs,
On a small planet named Bandai, a landing party of the starship Tadamigawa discovered colorful cubes traveling on flat areas of the planet surface, which the landing party named beds. A cube appears at a certain position on a bed, travels on the bed for a while, and then disappears. After a longtime observation, a science officer Lt. Alyssa Ogawa of Tadamigawa found the rule how a cube travels on a bed.
A bed is a rectangular area tiled with squares of the same size.
To Search:
File list (Check if you may need any files):
poj3945.cpp