Spreadsheet: 34011d1231064173-alternative-to-ctrl-shift-enter-array-formula-follows-previous-post-forum-question2_solution
Sheet: Sheet1

user input A => | 3 |  |  |  |  |  |  |  |  |  |  |  |  | The solution as provided by "DonkeyOte" :
user input B => | 4 |  |  |  |  |  |  |  |  |  |  |  |  | 33 | 3 | 36 | 4 | 32 | 3 | 38 | 2
user input C => | 3 |  |  | example A |  | example B |  | example C |  | example D |  |  |  | example A output |  | example B output |  | example C output |  | example D output
user input D => | 2 |  | time | input A | result A | input B | result B | input C | result C | input D | result D |  |  | time | result | time | result | time | result | time | result
 |  |  | 0 | 200 | 100 | 100 | 25 |  |  |  |  |  |  | 0 | 100 | 0 | 25 | 8 | 50 | 12 | 70
 |  |  | 1 |  | 70 |  | 24 |  |  |  |  |  |  | 3 | 125 | 4 | 25 | 11 | 50 | 14 | 70
 |  |  | 2 |  | 66 |  | 11 |  |  |  |  |  |  | 6 | 160 | 8 | 50 | 14 | 60 | 16 | 65
 |  |  | 3 | 200 | 125 |  | 56 |  |  |  |  |  |  | 9 | 125 | 12 | 55 | 17 | 100 | 18 | 60
 |  |  | 4 |  | 44 | 125 | 25 |  |  |  |  |  |  | 12 | 160 | 16 | 55 | 20 | 125 | 20 | 70
 |  |  | 5 |  | 125 |  | 45 |  |  |  |  |  |  | 15 | 225 | 20 | 75 | 23 | 100 | 22 | 75
 |  |  | 6 | 200 | 160 |  | 100 |  |  |  |  |  |  | 18 | 110 | 24 | 112 | 26 | 60 | 24 | 125
 |  |  | 7 |  | 54 |  | 124 |  |  |  |  |  |  | 21 | 105 | 28 | 125 | 29 | 60 | 26 | 135
 |  |  | 8 |  | 55 | 125 | 50 | 300 | 50 |  |  |  |  | 24 | 144 | 32 | 125 | 32 | 55 | 28 | 140
 |  |  | 9 | 100 | 125 |  | 66 |  | 50 |  |  |  |  | 27 | 109 | 36 | 75 |  |  | 30 | 60
 |  |  | 10 |  | 100 |  | 67 |  | 50 |  |  |  |  | 30 | 110 |  |  |  |  | 32 | 60
 |  |  | 11 |  | 100 |  | 90 | 300 | 50 |  |  |  |  | 33 | 112 |  |  |  |  | 34 | 60
 |  |  | 12 | 100 | 160 | 125 | 55 |  | 60 | 100 | 70 |  |  |  |  |  |  |  |  | 36 | 60
 |  |  | 13 |  | 45 |  | 66 |  | 50 |  | 70 |  |  |  |  |  |  |  |  | 38 | 45
 |  |  | 14 |  | 23 |  | 67 | 225 | 60 | 110 | 70
 |  |  | 15 | 100 | 225 |  | 90 |  | 100 |  | 78
 |  |  | 16 |  | 110 | 125 | 55 |  | 67 | 125 | 65
 |  |  | 17 |  | 11 |  | 24 | 200 | 100 |  | 89
 |  |  | 18 | 200 | 110 |  | 11 |  | 123 | 75 | 60
 |  |  | 19 |  | 109 |  | 56 |  | 145 |  | 90
 |  |  | 20 |  | 145 | 225 | 75 | 175 | 125 | 70 | 70
 |  |  | 21 | 125 | 105 |  | 45 |  | 67 |  | 100
 |  |  | 22 |  | 220 |  | 100 |  | 80 | 70 | 75
 |  |  | 23 |  | 123 |  | 124 | 150 | 100 |  | 100
 |  |  | 24 | 250 | 144 | 225 | 112 |  | 90 | 70 | 125
 |  |  | 25 |  | 23 |  | 200 |  | 78 |  | 124
 |  |  | 26 |  | 25 |  | 124 | 120 | 60 | 100 | 135
 |  |  | 27 | 88 | 109 |  | 34 |  | 100 |  | 56
 |  |  | 28 |  | 11 | 225 | 125 |  | 124 | 100 | 140
 |  |  | 29 |  | 46 |  | 37 | 110 | 60 |  | 55
 |  |  | 30 | 145 | 110 |  | 45 |  | 45 | 100 | 60
 |  |  | 31 |  | 45 |  | 67 |  | 45 |  | 67
 |  |  | 32 |  | 60 | 225 | 125 | 110 | 55 | 100 | 60
 |  |  | 33 | 122 | 112 |  | 24 |  | 55 |  | 78
 |  |  | 34 |  | 67 |  | 11 |  | 50 | 235 | 60
 |  |  | 35 |  | 78 |  | 56 |  | 50 |  | 78
 |  |  | 36 |  | 180 | 225 | 75 |  | 65 | 220 | 60
 |  |  | 37 |  | 56 |  | 44 |  | 100 |  | 90
 |  |  | 38 |  | 45 |  | 18 |  | 110 | 65 | 45
 |  |  | 39 |  | 180 |  | 90 |  | 100 |  | 67
 |  |  | 40 |  | 90 |  | 45 |  | 100 |  | 66
 |  |  | 41 |  | 91 |  | 77 |  |  |  | 43
 |  |  | 42 |  | 125 |  | 81 |  |  |  | 12
 |  |  | 43 |  | 110 |  | 12 |  |  |  | 8
 |  |  | 44 |  | 100 |  | 12 |  |  |  | 12
 |  |  | 45 |  | 5 |  | 5 |  |  |  | 90