1.实验代码
include<stdio.h>
int main()
{
int T;
scanf("%d
",&T);
int i,j,t,flag;
int a[10][10],[100];
for(t=1;t<=T;t++){
flag=1;
scanf("%d
",&a[t]);
for(i=0;i<Tab[t];i++){
for(j=0;j<a[t];j++){
scanf("%d",&a[i][j]);
if(i>j){
if(a[i][j]!=0) {
flag=0;
}
}
}
}
if(flag) printf("YES
");
else printf("NO
");
}
return 0;
}
一开始思路不是很清楚,没有做题的思路。然后网上查了些资料。对数组掌握的不是很灵活,流程图画不出来