#include "stdio.h" main() { int T,n,m[50],k[50][50],i,j,L,wofe,beki,pd,c; char *out[3000]; scanf("%d",&T); for(i=0;i