Advertisement
sazid_iiuc

Untitled

Jan 31st, 2020
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. #include<iostream>
  3. using namespace std;
  4.  
  5. main()
  6.  
  7. {
  8.     char in_arr[1000][1000], out_arr[1000][1000];
  9.     int t, m,n;
  10.     cin>>t;
  11.  
  12.     for(int k=0; k<t; k++)
  13.     {
  14.         cin>>m>>n;
  15.  
  16.         for(int i=0; i<m; i++)
  17.         {
  18.             for(int j=0; j<n; j++)
  19.             {
  20.                 cin>>in_arr[i][j];
  21.  
  22.             }
  23.         }
  24.         for(int i=0; i<m; i++)
  25.         {
  26.             for(int j=0; j<n; j++)
  27.             {
  28.  
  29.                 out_arr[i][j]=0;
  30.  
  31.                  cout<<out_arr[i][j]<<"\t";
  32.             }
  33.             cout<<endl;
  34.         }
  35.     }
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement