UVa 10067

From Algorithmist
Jump to navigation Jump to search

Link[edit]

http://icpcres.ecs.baylor.edu/onlinejudge/external/100/10067.htm


Explanaion[edit]

Considering the machine's states as graph vertices, do a BFS and find the shortest path. Exclude restricted states from search.

Solutions[edit]