#include<stdio.h> #include<iostream> #include<cstdlib> #include<cstdio> #include<cstring> #include<string> #include<algorithm> #include<vector> #include<cmath> #include<stack> using namespace std; int main() { int n, m, a, b; int p[100][100]; string ppp; cin >> n >> m >> a >> b; for (int i = 0; i < n; i++) { cin >> ppp; for (int y = 0; y < m; y++) { p[i][y] = ppp[y] - '0'; } } for (int z = 0; z < n; z++) { for (int jj = 0; jj < a; jj++) { for (int y = 0; y < m; y++) { int pp = b; while (pp>=1) { cout << p[z][y]; pp--; } } cout << endl; } } return 0; } |
Double click to view unformatted code.