View Code of Problem 3926

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
int main() {
	int n, m, a, b; cin >> n >> m >> a >> b;
	vector<string> arr(n);
	for (int i = 0; i < n; i++)
			cin >> arr[i];
	for (int i = 0; i < n; i++) 
		for (int v = 0; v < a; v++) {
			for (int j = 0; j < m; j++)
				for (int s = 0; s < b; s++)
					cout << arr[i][j];
			cout << endl;
		}
}

Double click to view unformatted code.


Back to problem 3926