摘要: Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent tiles. But he can't move on red tiles, he can move only on black tiles.Write a program to coun 阅读全文
posted @ 2012-12-20 23:00 cssystem 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Problem Description Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M <= 200) matrix. There are WALLs, ROADs, and GUARDs in the prison.Angel's friends want to save Angel. Their task is: approach Angel. We assume that "approach Ange 阅读全文
posted @ 2012-12-20 01:03 cssystem 阅读(165) 评论(0) 推荐(0) 编辑