Smaller. Faster. Better.
Need help optimizing. Note that the if conditionals are in a certain order for a reason. Input is a number 1 through 9 and corresponds to a 3x3 matrix in the following way:
19 | 29 | 39 | |
---|---|---|---|
35 | 1 | 2 | 3 |
45 | 4 | 5 | 6 |
55 | 7 | 8 | 9 |
Such that 1 would return an H of 19 and V of 35, 6 would return H=39 V=45, etcetera
C/3
If Ans≤1:19→H
If Ans≤2:29→H
If Ans≤3:39→H
If sum(C={1,4,7
35→V
If sum(C={2,5,8
45→V
If sum(C={3,6,9
55→V
Text(⁻1,H,V,"X