diff options
| author | Mark <53903062+andemark@users.noreply.github.com> | 2023-12-18 09:39:42 +0000 |
|---|---|---|
| committer | Mark <53903062+andemark@users.noreply.github.com> | 2023-12-18 09:39:42 +0000 |
| commit | 5f62b3ed1b23c5455f09ad1a09f087daa3e55f3e (patch) | |
| tree | 760436f9201e528923a3bfa48245b9d8a3b5d169 | |
| parent | ac5e4011d54b977a0251a10a5971b348958b798b (diff) | |
| download | perlweeklychallenge-club-5f62b3ed1b23c5455f09ad1a09f087daa3e55f3e.tar.gz perlweeklychallenge-club-5f62b3ed1b23c5455f09ad1a09f087daa3e55f3e.tar.bz2 perlweeklychallenge-club-5f62b3ed1b23c5455f09ad1a09f087daa3e55f3e.zip | |
Challenge 248 Solutions (Raku)
| -rw-r--r-- | challenge-248/mark-anderson/raku/ch-2.raku | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/challenge-248/mark-anderson/raku/ch-2.raku b/challenge-248/mark-anderson/raku/ch-2.raku index 60784f7d98..6289177402 100644 --- a/challenge-248/mark-anderson/raku/ch-2.raku +++ b/challenge-248/mark-anderson/raku/ch-2.raku @@ -26,41 +26,41 @@ is-deeply submatrix-sum([ ]; is-deeply submatrix-sum([ - [ 22, 4, 20, 24 ], - [ 21, 16, 23, 18 ], - [ 3, 12, 19, 5 ], - [ 15, 7, 10, 2 ], - [ 17, 11, 6, 13 ], - [ 9, 8, 14, 1 ] + [22, 4, 20, 24], + [21, 16, 23, 18], + [ 3, 12, 19, 5], + [15, 7, 10, 2], + [17, 11, 6, 13], + [ 9, 8, 14, 1] ]), [ - [ 63, 63, 85 ], - [ 52, 70, 65 ], - [ 37, 48, 36 ], - [ 50, 34, 31 ], - [ 45, 39, 34 ] + [63, 63, 85], + [52, 70, 65], + [37, 48, 36], + [50, 34, 31], + [45, 39, 34] ]; is-deeply submatrix-sum([ - [ 26, 50, 10, 54, 42, 31, 45, 58 ], - [ 29, 64, 23, 35, 15, 41, 27, 17 ], - [ 55, 37, 1, 30, 52, 53, 21, 46 ], - [ 3, 2, 6, 36, 11, 13, 19, 22 ], - [ 61, 47, 32, 39, 49, 62, 9, 12 ], - [ 20, 60, 44, 7, 59, 34, 14, 16 ], - [ 8, 24, 38, 43, 56, 48, 57, 25 ], - [ 5, 40, 33, 28, 63, 18, 4, 51 ] + [26, 50, 10, 54, 42, 31, 45, 58], + [29, 64, 23, 35, 15, 41, 27, 17], + [55, 37, 1, 30, 52, 53, 21, 46], + [ 3, 2, 6, 36, 11, 13, 19, 22], + [61, 47, 32, 39, 49, 62, 9, 12], + [20, 60, 44, 7, 59, 34, 14, 16], + [ 8, 24, 38, 43, 56, 48, 57, 25], + [ 5, 40, 33, 28, 63, 18, 4, 51] ]), [ - [ 169, 147, 122, 146, 129, 144, 147 ], - [ 185, 125, 89, 132, 161, 142, 111 ], - [ 97, 46, 73, 129, 129, 106, 108 ], - [ 113, 87, 113, 135, 135, 103, 62 ], - [ 188, 183, 122, 154, 204, 119, 51 ], - [ 112, 166, 132, 165, 197, 153, 112 ], - [ 77, 135, 142, 190, 185, 127, 137 ] + [169, 147, 122, 146, 129, 144, 147], + [185, 125, 89, 132, 161, 142, 111], + [ 97, 46, 73, 129, 129, 106, 108], + [113, 87, 113, 135, 135, 103, 62], + [188, 183, 122, 154, 204, 119, 51], + [112, 166, 132, 165, 197, 153, 112], + [ 77, 135, 142, 190, 185, 127, 137] ]; sub submatrix-sum(@a) |
