#include #include using namespace std; const int NMAX = 100 + 1; int n, m, x; int v[NMAX][NMAX]; void citeste() { cin >> n >> m >> x; for (int i = 1; i <= n; i++) for (int j = 1; j <= m; j++) { cin >> v[i][j]; } } void scrie() { for (int i = 1; i <= n; i++) { for (int k = 1; k <= x; k++, cout << '\n') for (int j = 1; j <= m; j++) for (int l = 1; l <= x; l++) { cout << v[i][j] << ' '; } } } int main() { citeste(); scrie(); return 0; }