Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/DSC-CETB/SeptoCode-21 into …
Browse files Browse the repository at this point in the history
…main
  • Loading branch information
Soumyakanta06 committed Oct 4, 2021
2 parents 6d84f2e + a9dda48 commit 901be75
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 42 deletions.
5 changes: 3 additions & 2 deletions Day 12/Problem Statement 12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Given a square matrix, calculate the absolute difference between the sums of its
Each of the next n lines describes a row, arr[i], and consists of n space-separated integers arr[i][j].

Constraints:-
- 1<=t<=40
- 1<=t<=45
- 1 <= n <= 4
- -100<=arr[i][j]<=100

Sample Input:-
Expand All @@ -31,4 +32,4 @@ Given a square matrix, calculate the absolute difference between the sums of its
Sum across the rows = 11+2+4+10+8-12=23
Sum across the columns = 11+8+10+4+6-12=27
Absolute difference = |23-27|=4


54 changes: 14 additions & 40 deletions Day 12/input.txt
Original file line number Diff line number Diff line change
@@ -1,223 +1,197 @@
40
45
4
67 34 0 69
24 78 58 62
64 5 45 81
27 61 91 95

3
27 36 91
4 2 53
92 82 21

3
18 95 47
26 71 38
69 12 67

4
35 94 3 11
22 33 73 64
41 11 53 68
47 44 62 57

4
59 23 41 29
78 16 35 90
42 88 6 40
42 64 48 46

4
90 29 70 50
6 1 93 48
29 23 84 54
56 40 66 76

4
8 44 39 26
23 37 38 18
82 29 41 33
15 39 58 4

3
77 6 73
86 21 45
24 72 70

4
77 73 97 12
86 90 61 36
55 67 55 74
31 52 50 50

4
24 66 30 7
91 7 37 57
87 53 83 45
9 9 58 21

3
22 46 6
30 13 68
0 91 62

4
10 59 24 37
48 83 95 41
2 50 91 36
74 20 96 21

3
99 68 84
81 34 53
99 18 38

3
88 27 67
28 93 48
83 7 21

3
17 13 14
9 16 35
51 0 49

4
56 98 3 24
8 44 9 89
2 95 85 93
43 23 87 14

4
48 0 58 18
80 96 98 81
89 98 9 57
72 22 38 92

3
79 90 57
58 91 15
88 56 11

3
34 72 55
28 46 62
86 75 33

4
42 44 16 81
98 22 51 21
99 57 76 92
89 75 12 0

3
3 69 61
88 1 89
55 23 2

4
82 85 88 26
17 57 32 32
69 54 21 89
76 29 68 92

4
55 34 49 41
12 45 60 18
53 39 23 79
96 87 29 49

4
66 49 93 95
97 16 86 5
88 82 55 34
14 1 16 71

3
63 13 55
85 53 12
8 32 45

4
56 21 58 46
82 81 44 96
22 29 61 35
50 73 66 44

4
92 39 53 24
54 10 45 49
86 13 74 22
68 18 87 5

3
91 2 25
77 14 14
24 34 74

3
59 33 70
87 97 18
77 73 70

4
68 92 85 2
80 13 27 2
99 27 25 43
24 23 72 61

4
3 32 5 93
25 31 92 42
22 86 64 0
87 60 13 74

3
70 35 33
11 60 96
67 85 50

3
94 95 24
19 25 76
94 58 2

4
66 78 93 51
84 18 64 19
52 0 87 60
26 10 57 70

4
76 27 43 58
64 9 82 86
65 87 77 74
25 27 29 28

4
20 2 62 23
96 37 61 95
25 64 60 2
16 30 26 11

4
11 47 53 20
90 24 88 63
40 51 62 29
0 13 58 78

4
7 77 0 58
39 3 60 57
24 77 8 13
87 1 50 60

3
93 84 5
40 11 4
35 56 72

3
23 85 56
16 26 57
26 57 37
1
5
2
2 4
3 4
2
4 5
-10 12
1
100
2
5 5
5 5

0 comments on commit 901be75

Please sign in to comment.