ll@t; rep(t){ ll@n,@p,@a[n][n]; if(p==2){ wt(1); }else{ wt(0); } }