View Code of Problem 3926

#include<bits/stdc++.h>
using namespace std;

int main(){
	int n,m,a,b;
	char aa[100][100];
	cin>>n>>m>>a>>b;getchar();
	for(int i=0;i<n;i++){
		cin>>aa[i];
	} 
	for(int i=0;i<n*a;i++){
		for(int j=0;j<m*b;j++){
			cout<<aa[i/a][j/b];
		}
		cout<<endl;
	}
}

Double click to view unformatted code.


Back to problem 3926