B3918 [语言月赛 202401] 图像变换
[题目通道]([语言月赛 202401] 图像变换 - 洛谷)
#include<bits/stdc++.h>
using namespace std;
int n,m,k;
string a[1000],st;
int main(){
cin>>n>>m>>k;
for (int i=1;i<=n;i++){
cin>>a[i];
}
for (int i=1;i<=n;i++){
st="";
for (int j=0;j<a[i].size();j++){
for (int qq=1;qq<=k;qq++){
st+=a[i][j];
}
}
a[i]=st;
}
for (int i=1;i<=n;i++){
for (int j=1;j<=k;j++) cout<<a[i]<<endl;
}
return 0;
}