1 #include<cstdio> 2 char op[1024]; 3 int main(){ 4 int t,n,m; 5 while(~scanf("%d",&t)){ 6 while(t--){ 7 scanf("%d%d%s",&n,&m,op); 8 for(int i=0;i<n;i++){ 9 for(int j=0;j<m;j++){ 10 printf("%c",op[i*m+j]); 11 } 12 puts(""); 13 } 14 } 15 } 16 return 0; 17 }
相关文章: