Advertisement
tepyotin2

#1.4 The Doodle

Dec 9th, 2023
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6.     ios_base::sync_with_stdio(0), cin.tie(0);
  7.     // freopen("doodle.in", "r", stdin);
  8.     int a, b, c;
  9.     cin >> a >> b >> c;
  10.     string v;
  11.     string val[a][b];
  12.     for(int i=0; i<a; i++){
  13.         cin >> v;
  14.         for(int j=0; j<b; j++){
  15.             val[i][j] = v[j];
  16.             // cout << val[i][j] << '\n';
  17.         }
  18.     }
  19.     for(int i=0; i<a; i++){
  20.         string s;
  21.         for(int j=0; j<b; j++){
  22.             for(int x=0; x<c; x++){
  23.                 s+=val[i][j];
  24.             }
  25.         }
  26.         for(int y=0; y<c; y++){
  27.             cout << s << '\n';
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement