-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddition.txt
51 lines (45 loc) · 849 Bytes
/
addition.txt
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include<stdio.h>
#include<conio.h>
#include<math.h>
#include<string.h>
#define pf printf
#define sc scanf
#define ll long long
#define yes printf("YES\n")
#define no printf("NO\n");
#define pi acos(-1)
const int inf = 1e9 + 10;
const ll INF = 1e18 + 10;
int main()
{
int t=1;
// sc("%d",&t);
while(t--)
{
int n;
sc("%d",&n);
int arr[n][n],arr1[n][n];
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
sc("%d",&arr[i][j]);
}
}
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
sc("%d",&arr1[i][j]);
}
}
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
pf("%d ",arr[i][j]+arr1[i][j]);
}
pf("\n");
}
}
}