//大水题
#include<bits/stdc++.h>
using namespace std;
int main(){
int T;
cin>>T;
while(T--){
char s[1005];
int n,m;
scanf("%d%d",&n,&m);
scanf("%s",s+1);
for(int i=1;i<=n*m;i++){
cout<<s[i];
if(i%m==0)cout<<endl;
}
}
}
HDU4813
最新推荐文章于 2024-08-06 10:22:43 发布