View Code of Problem 3926

#include<cstdio>
#include<cstring>
#include<cmath>
#include<iostream>
#include<algorithm>
#define N 100
using namespace std;
int main()
{
	int n,m,a,b;
	cin>>n>>m>>a>>b;
	char w[1000][1000];
	for(int i=0;i<n;i++){
		for(int j=0;j<m;j++){
			cin>>w[i][j];
		}
	}
    for(int i=0;i<n;i++){
    	for(int q=0;q<a;q++){
    			for(int j=0;j<m;j++){
    				for(int k=0;k<b;k++){
    					cout<<w[i][j];
					}
				}
				cout<<endl;
		}

	}
		return 0;
}

Double click to view unformatted code.


Back to problem 3926