Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main(){
- ios_base::sync_with_stdio(0), cin.tie(0);
- // freopen("doodle.in", "r", stdin);
- int a, b, c;
- cin >> a >> b >> c;
- string v;
- string val[a][b];
- for(int i=0; i<a; i++){
- cin >> v;
- for(int j=0; j<b; j++){
- val[i][j] = v[j];
- // cout << val[i][j] << '\n';
- }
- }
- for(int i=0; i<a; i++){
- string s;
- for(int j=0; j<b; j++){
- for(int x=0; x<c; x++){
- s+=val[i][j];
- }
- }
- for(int y=0; y<c; y++){
- cout << s << '\n';
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement