- Notifications
You must be signed in to change notification settings - Fork 366
/
Copy pathinpout.cpp
31 lines (27 loc) · 586 Bytes
/
inpout.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include<bits/stdc++.h>
usingnamespacestd;
#definelllonglong
#definepb push_back
#definemod1000000007
#defineendl'\n'
voidprintarr(int arr[][1000],int n,int m){
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
cout<<arr[i][j]<<"";
}
cout<<endl;
}
}
intmain(){
cin.tie(0)->sync_with_stdio(0);
int arr[1000][1000];
int n,m;
cin >>n>>m;
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
cin>>arr[i][j];
}
}
printarr(arr,n,m);
return0;
}