View Code of Problem 3926

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

int main() {
	int n, m, a, b;
	while (cin >> n >> m >> a >> b) {
		cout << n << m << a << b;
		string s[100];
		for (int i = 0; i < n; ++i)
				cin >> s[i];
		for (int i = 0; i < n; ++i) {
			int t1 = a;
			while (t1--) {
				for (int j = 0; j < m; ++j) {
					int t2 = b;
					while (t2--)
						cout << s[i][j];
				}
				cout << endl;
			}
			
		}
			

	}
	return 0;
}

Double click to view unformatted code.


Back to problem 3926