#include<iostream> #include<cstdio> using namespace std; int main() { int n, m, a, b; string matrix[10]; cin >> n >> m >> a >> b; for(int i = 0; i < n; i++) cin >> matrix[i]; for(int i = 0; i < n; i++) for(int x = 0; x < a; x++) { for(int j = 0; j < m; j++) for(int y = 0; y < b; y++) cout << matrix[i][j]; cout << endl; } return 0; } |
Double click to view unformatted code.