摘要:
View Code #include<stdio.h>#include<string.h>#include<stdlib.h>char map[10][10];int T,M,N,sx,sy,ex,ey;int ans;int dir[4][2]={-1,0,1,0,0,1,0,-1};bool Input(){ scanf("%d%d%d\n",&N,&M,&T); if(!N && !M && !T) return false; int i,j; for(i=1;i<=N; 阅读全文
摘要:
View Code #include<stdio.h>const int N=100005;typedef int T;T dat[N];int main(){ //freopen("in.txt","r",stdin); int t,n,index,i; scanf("%d",&t); for(index=1;index<=t;index++){ scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%d",dat+i); 阅读全文