5 5
SOLO
CPUCY
EKLQH
CRSOL
FAIAO
PGRBC
#include <stdio.h>
#include<stdlib.h>
char test[22][22];
int move[4][2]={ {-1,0},{0,-1},{0,1},{1,0}};
char w[101];
int m,n;
int visited[22][22];
int dfs(int x,int y,int t){
int i;
int a,b;
int flag=0;
if(w[t]=='\0')
return 1;
visited[x][y]=1;//0
SOLO
CPUCY
EKLQH
CRSOL
FAIAO
PGRBC
#include <stdio.h>
#include<stdlib.h>
char test[22][22];
int move[4][2]={ {-1,0},{0,-1},{0,1},{1,0}};
char w[101];
int m,n;
int visited[22][22];
int dfs(int x,int y,int t){
int i;
int a,b;
int flag=0;
if(w[t]=='\0')
return 1;
//返回0,1的条件不清楚
if(test[x][y]==w[t]){visited[x][y]=1;//0