//纯模拟
#include<iostream>
#include<cstring>
using namespace std;
struct node
{
char direction;
int step;
};
node map[11][11];
int main()
{
int row,column,enter,step,i,j,v[11][11],x,y;
while(scanf("%d%d%d",&row,&column,&enter)&&(row!=0||column!=0||enter!=0))
{
memset(v,0,sizeof(v));
getchar();
for(i=1;i<=row;i++)
{
for(j=1;j<=column;j++)
scanf("%c",&map[i][j].direction);
getchar();
}
x=1;
y=enter;
step=0;
while(0&......
阅读全文