#include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <set> #include <stack> #include <string> #include <vector> using namespace std; int main(void) { int m, n, a, b; cin >> m >> n >> a >> b; getchar(); string str; for (int i = 0; i < m; i++) { cin >> str; for (int z = 0; z < a; z++) { for (int j = 0; j < n; j++) { for (int k = 0; k < b; k++) { printf("%c", str[j]); } } printf("\n"); } } } |
Double click to view unformatted code.