Cody

Solution 2049881

Submitted on 7 Dec 2019 by Asif Newaz
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
start = 1; endno = 10; y_correct = [1 2 3 4 5 6 7 8 9 10; 2 4 6 8 10 12 14 16 18 20; 3 6 9 12 15 18 21 24 27 30; 4 8 12 16 20 24 28 32 36 40; 5 10 15 20 25 30 35 40 45 50; 6 12 18 24 30 36 42 48 54 60; 7 14 21 28 35 42 49 56 63 70; 8 16 24 32 40 48 56 64 72 80; 9 18 27 36 45 54 63 72 81 90; 10 20 30 40 50 60 70 80 90 100;]; assert(isequal(Tables(start, endno),y_correct))

table = 1 table = 1 2 table = 1 2 3 table = 1 2 3 4 table = 1 2 3 4 5 table = 1 2 3 4 5 6 table = 1 2 3 4 5 6 7 table = 1 2 3 4 5 6 7 8 table = 1 2 3 4 5 6 7 8 9 table = 1 2 3 4 5 6 7 8 9 10 table = 1 2 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 0 10 0 table = 1 2 2 4 3 0 4 0 5 0 6 0 7 0 8 0 9 0 10 0 table = 1 2 2 4 3 6 4 0 5 0 6 0 7 0 8 0 9 0 10 0 table = 1 2 2 4 3 6 4 8 5 0 6 0 7 0 8 0 9 0 10 0 table = 1 2 2 4 3 6 4 8 5 10 6 0 7 0 8 0 9 0 10 0 table = 1 2 2 4 3 6 4 8 5 10 6 12 7 0 8 0 9 0 10 0 table = 1 2 2 4 3 6 4 8 5 10 6 12 7 14 8 0 9 0 10 0 table = 1 2 2 4 3 6 4 8 5 10 6 12 7 14 8 16 9 0 10 0 table = 1 2 2 4 3 6 4 8 5 10 6 12 7 14 8 16 9 18 10 0 table = 1 2 2 4 3 6 4 8 5 10 6 12 7 14 8 16 9 18 10 20 table = 1 2 3 2 4 0 3 6 0 4 8 0 5 10 0 6 12 0 7 14 0 8 16 0 9 18 0 10 20 0 table = 1 2 3 2 4 6 3 6 0 4 8 0 5 10 0 6 12 0 7 14 0 8 16 0 9 18 0 10 20 0 table = 1 2 3 2 4 6 3 6 9 4 8 0 5 10 0 6 12 0 7 14 0 8 16 0 9 18 0 10 20 0 table = 1 2 3 2 4 6 3 6 9 4 8 12 5 10 0 6 12 0 7 14 0 8 16 0 9 18 0 10 20 0 table = 1 2 3 2 4 6 3 6 9 4 8 12 5 10 15 6 12 0 7 14 0 8 16 0 9 18 0 10 20 0 table = 1 2 3 2 4 6 3 6 9 4 8 12 5 10 15 6 12 18 7 14 0 8 16 0 9 18 0 10 20 0 table = 1 2 3 2 4 6 3 6 9 4 8 12 5 10 15 6 12 18 7 14 21 8 16 0 9 18 0 10 20 0 table = 1 2 3 2 4 6 3 6 9 4 8 12 5 10 15 6 12 18 7 14 21 8 16 24 9 18 0 10 20 0 table = 1 2 3 2 4 6 3 6 9 4 8 12 5 10 15 6 12 18 7 14 21 8 16 24 9 18 27 10 20 0 table = 1 2 3 2 4 6 3 6 9 4 8 12 5 10 15 6 12 18 7 14 21 8 16 24 9 18 27 10 20 30 table = 1 2 3 4 2 4 6 0 3 6 9 0 4 8 12 0 5 10 15 0 6 12 18 0 7 14 21 0 8 16 24 0 9 18 27 0 10 20 30 0 table = 1 2 3 4 2 4 6 8 3 6 9 0 4 8 12 0 5 10 15 0 6 12 18 0 7 14 21 0 8 16 24 0 9 18 27 0 10 20 30 0 table = 1 2 3 4 2 4 6 8 3 6 9 12 4 8 12 0 5 10 15 0 6 12 18 0 7 14 21 0 8 16 24 0 9 18 27 0 10 20 30 0 table = 1 2 3 4 2 4 6 8 3 6 9 12 4 8 12 16 5 10 15 0 6 12 18 0 7 14 21 0 8 16 24 0 9 18 27 0 10 20 30 0 table = 1 2 3 4 2 4 6 8 3 6 9 12 4 8 12 16 5 10 15 20 6 12 18 0 7 14 21 0 8 16 24 0 9 18 27 0 10 20 30 0 table = 1 2 3 4 2 4 6 8 3 6 9 12 4 8 12 16 5 10 15 20 6 12 18 24 7 14 21 0 8 16 24 0 9 18 27 0 10 20 30 0 table = 1 2 3 4 2 4 6 8 3 6 9 12 4 8 12 16 5 10 15 20 6 12 18 24 7 14 21 28 8 16 24 0 9 18 27 0 10 20 30 0 table = 1 2 3 4 2 4 6 8 3 6 9 12 4 8 12 16 5 10 15 20 6 12 18 24 7 14 21 28 8 16 24 32 9 18 27 0 10 20 30 0 table = 1 2 3 4 2 4 6 8 3 6 9 12 4 8 12 16 5 10 15 20 6 12 18 24 7 14 21 28 8 16 24 32 9 18 27 36 10 20 30 0 table = 1 2 3 4 2 4 6 8 3 6 9 12 4 8 12 16 5 10 15 20 6 12 18 24 7 14 21 28 8 16 24 32 9 18 27 36 10 20 30 40 table = 1 2 3 4 5 2 4 6 8 0 3 6 9 12 0 4 8 12 16 0 5 10 15 20 0 6 12 18 24 0 7 14 21 28 0 8 16 24 32 0 9 18 27 36 0 10 20 30 40 0 table = 1 2 3 4 5 2 4 6 8 10 3 6 9 12 0 4 8 12 16 0 5 10 15 20 0 6 12 18 24 0 7 14 21 28 0 8 16 24 32 0 9 18 27 36 0 10 20 30 40 0 table = 1 2 3 4 5 2 4 6 8 10 3 6 9 12 15 4 8 12 16 0 5 10 15 20 0 6 12 18 24 0 7 14 21 28 0 8 16 24 32 0 9 18 27 36 0 10 20 30 40 0 table = 1 2 3 4 5 2 4 6 8 10 3 6 9 12 15 4 8 12 16 20 5 10 15 20 0 6 12 18 24 0 7 14 21 28 0 8 16 24 32 0 9 18 27 36 0 10 20 30 40 0 table = 1 2 3 4 5 2 4 6 8 10 3 6 9 12 15 4 8 12 16 20 5 10 15 20 25 6 12 18 24 0 7 14 21 28 0 8 16 24 32 0 9 18 27 36 0 10 20 30 40 0 table = 1 2 3 4 5 2 4 6 8 10 3 6 9 12 15 4 8 12 16 20 5 10 15 20 25 6 12 18 24 30 7 14 21 28 0 8 16 24 32 0 9 18 27 36 0 10 20 30 40 0 table = 1 2 3 4 5 2 4 6 8 10 3 6 9 12 15 4 8 12 16 20 5 10 15 20 25 6 12 18 24 30 7 14 21 28 35 8 16 24 32 0 9 18 27 36 0 10 20 30 40 0 table = 1 2 3 4 5 2 4 6 8 10 3 6 9 12 15 4 8 12 16 20 5 10 15 20 25 6 12 18 24 30 7 14 21 28 35 8 16 24 32 40 9 18 27 36 0 10 20 30 40 0 table = 1 2 3 4 5 2 4 6 8 10 3 6 9 12 15 4 8 12 16 20 5 10 15 20 25 6 12 18 24 30 7 14 21 28 35 8 16 24 32 40 9 18 27 36 45 10 20 30 40 0 table = 1 2 3 4 5 2 4 6 8 10 3 6 9 12 15 4 8 12 16 20 5 10 15 20 25 6 12 18 24 30 7 14 21 28 35 8 16 24 32 40 9 18 27 36 45 10 20 30 40 50 table = 1 2 3 4 5 6 2 4 6 8 10 0 3 6 9 12 15 0 4 8 12 16 20 0 5 10 15 20 25 0 6 12 18 24 30 0 7 14 21 28 35 ...

2   Pass
start = 17; endno = 19; y_correct = [17 18 19; 34 36 38; 51 54 57; 68 72 76; 85 90 95; 102 108 114; 119 126 133; 136 144 152; 153 162 171; 170 180 190;]; assert(isequal(Tables(start, endno),y_correct))

table = 17 table = 17 34 table = 17 34 51 table = 17 34 51 68 table = 17 34 51 68 85 table = 17 34 51 68 85 102 table = 17 34 51 68 85 102 119 table = 17 34 51 68 85 102 119 136 table = 17 34 51 68 85 102 119 136 153 table = 17 34 51 68 85 102 119 136 153 170 table = 17 18 34 0 51 0 68 0 85 0 102 0 119 0 136 0 153 0 170 0 table = 17 18 34 36 51 0 68 0 85 0 102 0 119 0 136 0 153 0 170 0 table = 17 18 34 36 51 54 68 0 85 0 102 0 119 0 136 0 153 0 170 0 table = 17 18 34 36 51 54 68 72 85 0 102 0 119 0 136 0 153 0 170 0 table = 17 18 34 36 51 54 68 72 85 90 102 0 119 0 136 0 153 0 170 0 table = 17 18 34 36 51 54 68 72 85 90 102 108 119 0 136 0 153 0 170 0 table = 17 18 34 36 51 54 68 72 85 90 102 108 119 126 136 0 153 0 170 0 table = 17 18 34 36 51 54 68 72 85 90 102 108 119 126 136 144 153 0 170 0 table = 17 18 34 36 51 54 68 72 85 90 102 108 119 126 136 144 153 162 170 0 table = 17 18 34 36 51 54 68 72 85 90 102 108 119 126 136 144 153 162 170 180 table = 17 18 19 34 36 0 51 54 0 68 72 0 85 90 0 102 108 0 119 126 0 136 144 0 153 162 0 170 180 0 table = 17 18 19 34 36 38 51 54 0 68 72 0 85 90 0 102 108 0 119 126 0 136 144 0 153 162 0 170 180 0 table = 17 18 19 34 36 38 51 54 57 68 72 0 85 90 0 102 108 0 119 126 0 136 144 0 153 162 0 170 180 0 table = 17 18 19 34 36 38 51 54 57 68 72 76 85 90 0 102 108 0 119 126 0 136 144 0 153 162 0 170 180 0 table = 17 18 19 34 36 38 51 54 57 68 72 76 85 90 95 102 108 0 119 126 0 136 144 0 153 162 0 170 180 0 table = 17 18 19 34 36 38 51 54 57 68 72 76 85 90 95 102 108 114 119 126 0 136 144 0 153 162 0 170 180 0 table = 17 18 19 34 36 38 51 54 57 68 72 76 85 90 95 102 108 114 119 126 133 136 144 0 153 162 0 170 180 0 table = 17 18 19 34 36 38 51 54 57 68 72 76 85 90 95 102 108 114 119 126 133 136 144 152 153 162 0 170 180 0 table = 17 18 19 34 36 38 51 54 57 68 72 76 85 90 95 102 108 114 119 126 133 136 144 152 153 162 171 170 180 0 table = 17 18 19 34 36 38 51 54 57 68 72 76 85 90 95 102 108 114 119 126 133 136 144 152 153 162 171 170 180 190

3   Pass
start = 21; endno = 22; y_correct =[21 22; 42 44; 63 66; 84 88; 105 110; 126 132; 147 154; 168 176; 189 198; 210 220;] assert(isequal(Tables(start, endno),y_correct))

y_correct = 21 22 42 44 63 66 84 88 105 110 126 132 147 154 168 176 189 198 210 220 table = 21 table = 21 42 table = 21 42 63 table = 21 42 63 84 table = 21 42 63 84 105 table = 21 42 63 84 105 126 table = 21 42 63 84 105 126 147 table = 21 42 63 84 105 126 147 168 table = 21 42 63 84 105 126 147 168 189 table = 21 42 63 84 105 126 147 168 189 210 table = 21 22 42 0 63 0 84 0 105 0 126 0 147 0 168 0 189 0 210 0 table = 21 22 42 44 63 0 84 0 105 0 126 0 147 0 168 0 189 0 210 0 table = 21 22 42 44 63 66 84 0 105 0 126 0 147 0 168 0 189 0 210 0 table = 21 22 42 44 63 66 84 88 105 0 126 0 147 0 168 0 189 0 210 0 table = 21 22 42 44 63 66 84 88 105 110 126 0 147 0 168 0 189 0 210 0 table = 21 22 42 44 63 66 84 88 105 110 126 132 147 0 168 0 189 0 210 0 table = 21 22 42 44 63 66 84 88 105 110 126 132 147 154 168 0 189 0 210 0 table = 21 22 42 44 63 66 84 88 105 110 126 132 147 154 168 176 189 0 210 0 table = 21 22 42 44 63 66 84 88 105 110 126 132 147 154 168 176 189 198 210 0 table = 21 22 42 44 63 66 84 88 105 110 126 132 147 154 168 176 189 198 210 220