View Code of Problem 3926

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<cmath>
#include<cstring>
#include<vector>
#include<map>
#include<string>
#include<set>
using namespace std;
string s[100];
int main(){
    int n,m,a,b;
    cin>>n>>m>>a>>b;
    for(int i=0;i<n;i++)
        cin>>s[i];
    for(int i=0;i<n;i++)
    {
        for(int t=0;t<a;t++){
            for(int j=0;j<m;j++)
            {
                for(int k=0;k<b;k++)
                    cout<<s[i][j];
            }
            cout<<endl;
        }

    }
    return 0;
}
/*
2 2 2 2
01
10
*/

Double click to view unformatted code.


Back to problem 3926