#include <iostream> #include<stdio.h> #include <string.h> #include<cstring> #include <math.h> #include<algorithm> #include <stack> using namespace std; int main() { int m, n, a, b; cin >> n >> m >> a >> b; char x[20][20]; for (int i = 0; i < n; i++) { for (int k = 0; k < m; k++) { cin >> x[i][k]; } } for (int i = 0; i < n; i++) { for (int k = 0; k < a; k++) { for (int j = 0; j < m; j++) { for (int t = 0; t < b; t++) { cout << x[i][j]; } } cout << endl; } } return 0; } |
Double click to view unformatted code.