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 }
View Code

相关文章:

  • 2022-01-31
  • 2022-01-22
  • 2021-11-07
  • 2022-12-23
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
猜你喜欢
  • 2021-04-15
  • 2021-06-21
  • 2021-05-26
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案