#70124 - 2002-09-24 07:29 PM
Re: KixGolf Results/Code
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
The second bug invloves a goto from within a nested "FOR" loop. the bug is discussed in more detail here: GOTO/Endfunction BUG
|
Top
|
|
|
|
#70131 - 2002-09-25 12:36 AM
Re: KixGolf Results/Code
|
Jack Lothian
MM club member
Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
|
Madruga,
I wrote an algorithm that uses integer math to get the solutions & it get different results from your analysis. I get 466 solution sets not 465 & it seems 6 of the 7 parenthesis types are necessary to derive all the solutions. {The only type not necessary is a (b c) d)}
I made a few modifications & I am rerunning the test. I will let you know the results. My first pass suggests this is the complete solution set.
code:
In => 0, 0, 0, 0; Out => In => 0, 0, 0, 1; Out => In => 0, 0, 0, 2; Out => In => 0, 0, 0, 3; Out => In => 0, 0, 0, 4; Out => In => 0, 0, 0, 5; Out => In => 0, 0, 0, 6; Out => In => 0, 0, 0, 7; Out => In => 0, 0, 0, 8; Out => In => 0, 0, 0, 9; Out => In => 0, 0, 1, 1; Out => In => 0, 0, 1, 2; Out => In => 0, 0, 1, 3; Out => In => 0, 0, 1, 4; Out => In => 0, 0, 1, 5; Out => In => 0, 0, 1, 6; Out => In => 0, 0, 1, 7; Out => In => 0, 0, 1, 8; Out => In => 0, 0, 1, 9; Out => In => 0, 0, 2, 2; Out => In => 0, 0, 2, 3; Out => In => 0, 0, 2, 4; Out => In => 0, 0, 2, 5; Out => In => 0, 0, 2, 6; Out => In => 0, 0, 2, 7; Out => In => 0, 0, 2, 8; Out => In => 0, 0, 2, 9; Out => In => 0, 0, 3, 3; Out => In => 0, 0, 3, 4; Out => In => 0, 0, 3, 5; Out => In => 0, 0, 3, 6; Out => In => 0, 0, 3, 7; Out => In => 0, 0, 3, 8; Out => 0 + 0 + 3 * 8 In => 0, 0, 3, 9; Out => In => 0, 0, 4, 4; Out => In => 0, 0, 4, 5; Out => In => 0, 0, 4, 6; Out => 0 + 0 + 4 * 6 In => 0, 0, 4, 7; Out => In => 0, 0, 4, 8; Out => In => 0, 0, 4, 9; Out => In => 0, 0, 5, 5; Out => In => 0, 0, 5, 6; Out => In => 0, 0, 5, 7; Out => In => 0, 0, 5, 8; Out => In => 0, 0, 5, 9; Out => In => 0, 0, 6, 6; Out => In => 0, 0, 6, 7; Out => In => 0, 0, 6, 8; Out => In => 0, 0, 6, 9; Out => In => 0, 0, 7, 7; Out => In => 0, 0, 7, 8; Out => In => 0, 0, 7, 9; Out => In => 0, 0, 8, 8; Out => In => 0, 0, 8, 9; Out => In => 0, 0, 9, 9; Out => In => 0, 1, 1, 1; Out => In => 0, 1, 1, 2; Out => In => 0, 1, 1, 3; Out => In => 0, 1, 1, 4; Out => In => 0, 1, 1, 5; Out => In => 0, 1, 1, 6; Out => In => 0, 1, 1, 7; Out => In => 0, 1, 1, 8; Out => In => 0, 1, 1, 9; Out => In => 0, 1, 2, 2; Out => In => 0, 1, 2, 3; Out => In => 0, 1, 2, 4; Out => In => 0, 1, 2, 5; Out => In => 0, 1, 2, 6; Out => In => 0, 1, 2, 7; Out => In => 0, 1, 2, 8; Out => ( 0 + 1 + 2 ) * 8 In => 0, 1, 2, 9; Out => In => 0, 1, 3, 3; Out => In => 0, 1, 3, 4; Out => In => 0, 1, 3, 5; Out => In => 0, 1, 3, 6; Out => ( 0 + 1 + 3 ) * 6 In => 0, 1, 3, 7; Out => ( 0 + 1 + 7 ) * 3 In => 0, 1, 3, 8; Out => 0 + 1 * 3 * 8 In => 0, 1, 3, 9; Out => ( 0 - 1 + 9 ) * 3 In => 0, 1, 4, 4; Out => In => 0, 1, 4, 5; Out => ( 0 + 1 + 5 ) * 4 In => 0, 1, 4, 6; Out => 0 + 1 * 4 * 6 In => 0, 1, 4, 7; Out => ( 0 - 1 + 7 ) * 4 In => 0, 1, 4, 8; Out => ( 0 - 1 + 4 ) * 8 In => 0, 1, 4, 9; Out => In => 0, 1, 5, 5; Out => 0 - 1 + 5 * 5 In => 0, 1, 5, 6; Out => ( 0 - 1 + 5 ) * 6 In => 0, 1, 5, 7; Out => In => 0, 1, 5, 8; Out => In => 0, 1, 5, 9; Out => In => 0, 1, 6, 6; Out => In => 0, 1, 6, 7; Out => In => 0, 1, 6, 8; Out => In => 0, 1, 6, 9; Out => In => 0, 1, 7, 7; Out => In => 0, 1, 7, 8; Out => In => 0, 1, 7, 9; Out => In => 0, 1, 8, 8; Out => In => 0, 1, 8, 9; Out => In => 0, 1, 9, 9; Out => In => 0, 2, 2, 2; Out => In => 0, 2, 2, 3; Out => In => 0, 2, 2, 4; Out => In => 0, 2, 2, 5; Out => In => 0, 2, 2, 6; Out => 0 + 2 * 2 * 6 In => 0, 2, 2, 7; Out => In => 0, 2, 2, 8; Out => In => 0, 2, 2, 9; Out => In => 0, 2, 3, 3; Out => In => 0, 2, 3, 4; Out => 0 + 2 * 3 * 4 In => 0, 2, 3, 5; Out => In => 0, 2, 3, 6; Out => ( 0 + 2 + 6 ) * 3 In => 0, 2, 3, 7; Out => In => 0, 2, 3, 8; Out => 0 / 2 + 3 * 8 In => 0, 2, 3, 9; Out => ( 0 + 3 + 9 ) * 2 In => 0, 2, 4, 4; Out => ( 0 + 2 + 4 ) * 4 In => 0, 2, 4, 5; Out => In => 0, 2, 4, 6; Out => 0 / 2 + 4 * 6 In => 0, 2, 4, 7; Out => In => 0, 2, 4, 8; Out => ( 0 - 2 + 8 ) * 4 In => 0, 2, 4, 9; Out => In => 0, 2, 5, 5; Out => In => 0, 2, 5, 6; Out => In => 0, 2, 5, 7; Out => ( 0 + 5 + 7 ) * 2 In => 0, 2, 5, 8; Out => ( 0 - 2 + 5 ) * 8 In => 0, 2, 5, 9; Out => In => 0, 2, 6, 6; Out => ( 0 - 2 + 6 ) * 6 In => 0, 2, 6, 7; Out => In => 0, 2, 6, 8; Out => 0 + 6 * 8 / 2 In => 0, 2, 6, 9; Out => 0 + 2 * 9 + 6 In => 0, 2, 7, 7; Out => In => 0, 2, 7, 8; Out => In => 0, 2, 7, 9; Out => In => 0, 2, 8, 8; Out => 0 + 2 * 8 + 8 In => 0, 2, 8, 9; Out => In => 0, 2, 9, 9; Out => In => 0, 3, 3, 3; Out => In => 0, 3, 3, 4; Out => ( 0 + 3 + 3 ) * 4 In => 0, 3, 3, 5; Out => ( 0 + 3 + 5 ) * 3 In => 0, 3, 3, 6; Out => In => 0, 3, 3, 7; Out => 0 + 3 + 3 * 7 In => 0, 3, 3, 8; Out => 0 / 3 + 3 * 8 In => 0, 3, 3, 9; Out => 0 - 3 + 3 * 9 In => 0, 3, 4, 4; Out => ( 0 + 4 + 4 ) * 3 In => 0, 3, 4, 5; Out => In => 0, 3, 4, 6; Out => 0 / 3 + 4 * 6 In => 0, 3, 4, 7; Out => In => 0, 3, 4, 8; Out => 0 / 4 + 8 * 3 In => 0, 3, 4, 9; Out => ( 0 - 3 + 9 ) * 4 In => 0, 3, 5, 5; Out => In => 0, 3, 5, 6; Out => In => 0, 3, 5, 7; Out => In => 0, 3, 5, 8; Out => 0 / 5 + 8 * 3 In => 0, 3, 5, 9; Out => 0 + 3 * 5 + 9 In => 0, 3, 6, 6; Out => 0 + 3 * 6 + 6 In => 0, 3, 6, 7; Out => ( 0 - 3 + 7 ) * 6 In => 0, 3, 6, 8; Out => 0 / 6 + 8 * 3 In => 0, 3, 6, 9; Out => In => 0, 3, 7, 7; Out => In => 0, 3, 7, 8; Out => 0 / 7 + 8 * 3 In => 0, 3, 7, 9; Out => In => 0, 3, 8, 8; Out => 0 / 8 + 8 * 3 In => 0, 3, 8, 9; Out => 0 + 8 * 9 / 3 In => 0, 3, 9, 9; Out => In => 0, 4, 4, 4; Out => In => 0, 4, 4, 5; Out => 0 + 4 + 4 * 5 In => 0, 4, 4, 6; Out => 0 / 4 + 4 * 6 In => 0, 4, 4, 7; Out => 0 - 4 + 4 * 7 In => 0, 4, 4, 8; Out => 0 + 4 * 4 + 8 In => 0, 4, 4, 9; Out => In => 0, 4, 5, 5; Out => In => 0, 4, 5, 6; Out => 0 / 5 + 6 * 4 In => 0, 4, 5, 7; Out => In => 0, 4, 5, 8; Out => In => 0, 4, 5, 9; Out => In => 0, 4, 6, 6; Out => 0 / 6 + 6 * 4 In => 0, 4, 6, 7; Out => 0 / 7 + 4 * 6 In => 0, 4, 6, 8; Out => 0 / 8 + 4 * 6 In => 0, 4, 6, 9; Out => 0 / 9 + 4 * 6 In => 0, 4, 7, 7; Out => In => 0, 4, 7, 8; Out => ( 0 - 4 + 7 ) * 8 In => 0, 4, 7, 9; Out => In => 0, 4, 8, 8; Out => 0 + 4 * 8 - 8 In => 0, 4, 8, 9; Out => In => 0, 4, 9, 9; Out => In => 0, 5, 5, 5; Out => In => 0, 5, 5, 6; Out => In => 0, 5, 5, 7; Out => In => 0, 5, 5, 8; Out => In => 0, 5, 5, 9; Out => In => 0, 5, 6, 6; Out => 0 + 5 * 6 - 6 In => 0, 5, 6, 7; Out => In => 0, 5, 6, 8; Out => In => 0, 5, 6, 9; Out => ( 0 - 5 + 9 ) * 6 In => 0, 5, 7, 7; Out => In => 0, 5, 7, 8; Out => In => 0, 5, 7, 9; Out => In => 0, 5, 8, 8; Out => ( 0 - 5 + 8 ) * 8 In => 0, 5, 8, 9; Out => In => 0, 5, 9, 9; Out => In => 0, 6, 6, 6; Out => In => 0, 6, 6, 7; Out => In => 0, 6, 6, 8; Out => In => 0, 6, 6, 9; Out => In => 0, 6, 7, 7; Out => In => 0, 6, 7, 8; Out => In => 0, 6, 7, 9; Out => In => 0, 6, 8, 8; Out => In => 0, 6, 8, 9; Out => ( 0 - 6 + 9 ) * 8 In => 0, 6, 9, 9; Out => 0 + 6 + 9 + 9 In => 0, 7, 7, 7; Out => In => 0, 7, 7, 8; Out => In => 0, 7, 7, 9; Out => In => 0, 7, 8, 8; Out => In => 0, 7, 8, 9; Out => 0 + 7 + 8 + 9 In => 0, 7, 9, 9; Out => In => 0, 8, 8, 8; Out => 0 + 8 + 8 + 8 In => 0, 8, 8, 9; Out => In => 0, 8, 9, 9; Out => In => 0, 9, 9, 9; Out => In => 1, 1, 1, 1; Out => In => 1, 1, 1, 2; Out => In => 1, 1, 1, 3; Out => In => 1, 1, 1, 4; Out => In => 1, 1, 1, 5; Out => In => 1, 1, 1, 6; Out => In => 1, 1, 1, 7; Out => In => 1, 1, 1, 8; Out => ( 1 + 1 + 1 ) * 8 In => 1, 1, 1, 9; Out => In => 1, 1, 2, 2; Out => In => 1, 1, 2, 3; Out => In => 1, 1, 2, 4; Out => In => 1, 1, 2, 5; Out => In => 1, 1, 2, 6; Out => ( 1 + 1 + 2 ) * 6 In => 1, 1, 2, 7; Out => ( 1 + 2 ) * ( 7 + 1 ) In => 1, 1, 2, 8; Out => ( 1 + 1 * 2 ) * 8 In => 1, 1, 2, 9; Out => ( 1 + 2 ) * ( 9 - 1 ) In => 1, 1, 3, 3; Out => In => 1, 1, 3, 4; Out => 3 * 4 * ( 1 + 1 ) In => 1, 1, 3, 5; Out => ( 1 + 3 ) * ( 5 + 1 ) In => 1, 1, 3, 6; Out => ( 1 + 1 * 3 ) * 6 In => 1, 1, 3, 7; Out => ( 1 + 1 * 7 ) * 3 In => 1, 1, 3, 8; Out => 1 - 1 + 3 * 8 In => 1, 1, 3, 9; Out => ( 1 * 9 - 1 ) * 3 In => 1, 1, 4, 4; Out => ( 1 + 1 + 4 ) * 4 In => 1, 1, 4, 5; Out => ( 1 + 1 * 5 ) * 4 In => 1, 1, 4, 6; Out => 1 - 1 + 4 * 6 In => 1, 1, 4, 7; Out => ( 1 * 7 - 1 ) * 4 In => 1, 1, 4, 8; Out => ( 1 * 4 - 1 ) * 8 In => 1, 1, 4, 9; Out => ( 1 - 4 ) * ( 1 - 9 ) In => 1, 1, 5, 5; Out => 1 * 5 * 5 - 1 In => 1, 1, 5, 6; Out => ( 1 * 5 - 1 ) * 6 In => 1, 1, 5, 7; Out => ( 1 + 1 ) * ( 5 + 7 ) In => 1, 1, 5, 8; Out => ( 5 - 1 - 1 ) * 8 In => 1, 1, 5, 9; Out => In => 1, 1, 6, 6; Out => ( 6 - 1 - 1 ) * 6 In => 1, 1, 6, 7; Out => In => 1, 1, 6, 8; Out => 6 * 8 / ( 1 + 1 ) In => 1, 1, 6, 9; Out => 6 + 9 * ( 1 + 1 ) In => 1, 1, 7, 7; Out => In => 1, 1, 7, 8; Out => In => 1, 1, 7, 9; Out => In => 1, 1, 8, 8; Out => 8 + 8 * ( 1 + 1 ) In => 1, 1, 8, 9; Out => In => 1, 1, 9, 9; Out => In => 1, 2, 2, 2; Out => In => 1, 2, 2, 3; Out => In => 1, 2, 2, 4; Out => 2 * 4 * ( 1 + 2 ) In => 1, 2, 2, 5; Out => 2 * 2 * ( 5 + 1 ) In => 1, 2, 2, 6; Out => 1 * 2 * 2 * 6 In => 1, 2, 2, 7; Out => 2 * 2 * ( 7 - 1 ) In => 1, 2, 2, 8; Out => ( 2 + 2 - 1 ) * 8 In => 1, 2, 2, 9; Out => ( 1 + 2 + 9 ) * 2 In => 1, 2, 3, 3; Out => 2 * 3 * ( 3 + 1 ) In => 1, 2, 3, 4; Out => 1 * 2 * 3 * 4 In => 1, 2, 3, 5; Out => ( 1 + 2 + 5 ) * 3 In => 1, 2, 3, 6; Out => ( 1 * 2 + 6 ) * 3 In => 1, 2, 3, 7; Out => 1 + 2 + 3 * 7 In => 1, 2, 3, 8; Out => ( 1 + 3 + 8 ) * 2 In => 1, 2, 3, 9; Out => 3 * 9 - 1 - 2 In => 1, 2, 4, 4; Out => ( 1 * 2 + 4 ) * 4 In => 1, 2, 4, 5; Out => ( 2 + 5 - 1 ) * 4 In => 1, 2, 4, 6; Out => 4 * 6 / ( 2 - 1 ) In => 1, 2, 4, 7; Out => ( 1 - 2 + 7 ) * 4 In => 1, 2, 4, 8; Out => ( 1 - 2 + 4 ) * 8 In => 1, 2, 4, 9; Out => ( 4 + 9 - 1 ) * 2 In => 1, 2, 5, 5; Out => 1 - 2 + 5 * 5 In => 1, 2, 5, 6; Out => ( 1 - 2 + 5 ) * 6 In => 1, 2, 5, 7; Out => ( 1 * 5 + 7 ) * 2 In => 1, 2, 5, 8; Out => ( 1 * 5 - 2 ) * 8 In => 1, 2, 5, 9; Out => 1 + 2 * 9 + 5 In => 1, 2, 6, 6; Out => ( 1 * 6 + 6 ) * 2 In => 1, 2, 6, 7; Out => ( 6 + 7 - 1 ) * 2 In => 1, 2, 6, 8; Out => 1 / 2 * 6 * 8 In => 1, 2, 6, 9; Out => 1 * 2 * 9 + 6 In => 1, 2, 7, 7; Out => ( 7 * 7 - 1 ) / 2 In => 1, 2, 7, 8; Out => 1 + 2 * 8 + 7 In => 1, 2, 7, 9; Out => 1 + 2 * 7 + 9 In => 1, 2, 8, 8; Out => 1 * 2 * 8 + 8 In => 1, 2, 8, 9; Out => 2 * 8 + 9 - 1 In => 1, 2, 9, 9; Out => In => 1, 3, 3, 3; Out => ( 3 * 3 - 1 ) * 3 In => 1, 3, 3, 4; Out => ( 1 * 3 + 3 ) * 4 In => 1, 3, 3, 5; Out => ( 1 * 3 + 5 ) * 3 In => 1, 3, 3, 6; Out => ( 3 + 6 - 1 ) * 3 In => 1, 3, 3, 7; Out => 1 * 3 + 3 * 7 In => 1, 3, 3, 8; Out => 3 + 3 * ( 8 - 1 ) In => 1, 3, 3, 9; Out => 1 * 3 * 9 - 3 In => 1, 3, 4, 4; Out => ( 1 * 4 + 4 ) * 3 In => 1, 3, 4, 5; Out => 1 + 3 + 4 * 5 In => 1, 3, 4, 6; Out => 6 / ( 1 - 3 / 4 ) In => 1, 3, 4, 7; Out => 3 * 7 - 1 + 4 In => 1, 3, 4, 8; Out => ( 1 - 3 + 8 ) * 4 In => 1, 3, 4, 9; Out => 1 + 3 * 9 - 4 In => 1, 3, 5, 5; Out => In => 1, 3, 5, 6; Out => 1 + 3 * 6 + 5 In => 1, 3, 5, 7; Out => ( 1 + 5 ) * ( 7 - 3 ) In => 1, 3, 5, 8; Out => 1 + 3 * 5 + 8 In => 1, 3, 5, 9; Out => 1 * 3 * 5 + 9 In => 1, 3, 6, 6; Out => 1 * 3 * 6 + 6 In => 1, 3, 6, 7; Out => 3 * 6 + 7 - 1 In => 1, 3, 6, 8; Out => ( 1 + 6 / 3 ) * 8 In => 1, 3, 6, 9; Out => ( 1 + 9 / 3 ) * 6 In => 1, 3, 7, 7; Out => ( 1 - 7 ) * ( 3 - 7 ) In => 1, 3, 7, 8; Out => ( 7 - 1 - 3 ) * 8 In => 1, 3, 7, 9; Out => 9 / 3 * ( 1 + 7 ) In => 1, 3, 8, 8; Out => 8 - 8 * ( 1 - 3 ) In => 1, 3, 8, 9; Out => 1 / 3 * 8 * 9 In => 1, 3, 9, 9; Out => 9 / 3 * ( 9 - 1 ) In => 1, 4, 4, 4; Out => 4 + 4 * ( 4 + 1 ) In => 1, 4, 4, 5; Out => 1 * 4 + 4 * 5 In => 1, 4, 4, 6; Out => 4 + 4 * ( 6 - 1 ) In => 1, 4, 4, 7; Out => 1 + 4 * 4 + 7 In => 1, 4, 4, 8; Out => 1 * 4 * 4 + 8 In => 1, 4, 4, 9; Out => 4 * 4 + 9 - 1 In => 1, 4, 5, 5; Out => 4 * 5 + 5 - 1 In => 1, 4, 5, 6; Out => 4 / ( 1 - 5 / 6 ) In => 1, 4, 5, 7; Out => 1 + 4 * 7 - 5 In => 1, 4, 5, 8; Out => 8 - 4 * ( 1 - 5 ) In => 1, 4, 5, 9; Out => 9 - 5 * ( 1 - 4 ) In => 1, 4, 6, 6; Out => 6 - 6 * ( 1 - 4 ) In => 1, 4, 6, 7; Out => ( 1 - 4 + 7 ) * 6 In => 1, 4, 6, 8; Out => ( 1 - 4 + 6 ) * 8 In => 1, 4, 6, 9; Out => ( 9 - 1 - 4 ) * 6 In => 1, 4, 7, 7; Out => ( 1 + 7 ) * ( 7 - 4 ) In => 1, 4, 7, 8; Out => 4 * 8 - 1 - 7 In => 1, 4, 7, 9; Out => ( 1 - 9 ) * ( 4 - 7 ) In => 1, 4, 8, 8; Out => 1 * 4 * 8 - 8 In => 1, 4, 8, 9; Out => 1 + 4 * 8 - 9 In => 1, 4, 9, 9; Out => In => 1, 5, 5, 5; Out => ( 5 - 1 / 5 ) * 5 In => 1, 5, 5, 6; Out => 5 * 6 - 1 - 5 In => 1, 5, 5, 7; Out => In => 1, 5, 5, 8; Out => In => 1, 5, 5, 9; Out => ( 1 + 5 ) * ( 9 - 5 ) In => 1, 5, 6, 6; Out => 1 * 5 * 6 - 6 In => 1, 5, 6, 7; Out => 1 + 5 * 6 - 7 In => 1, 5, 6, 8; Out => ( 1 - 5 + 8 ) * 6 In => 1, 5, 6, 9; Out => ( 1 * 9 - 5 ) * 6 In => 1, 5, 7, 7; Out => In => 1, 5, 7, 8; Out => ( 1 - 5 + 7 ) * 8 In => 1, 5, 7, 9; Out => ( 1 - 7 ) * ( 5 - 9 ) In => 1, 5, 8, 8; Out => ( 1 * 8 - 5 ) * 8 In => 1, 5, 8, 9; Out => ( 9 - 1 - 5 ) * 8 In => 1, 5, 9, 9; Out => 1 + 5 + 9 + 9 In => 1, 6, 6, 6; Out => ( 6 - 1 ) * 6 - 6 In => 1, 6, 6, 7; Out => In => 1, 6, 6, 8; Out => 6 / ( 1 - 6 / 8 ) In => 1, 6, 6, 9; Out => ( 1 - 6 + 9 ) * 6 In => 1, 6, 7, 7; Out => In => 1, 6, 7, 8; Out => In => 1, 6, 7, 9; Out => ( 1 + 7 ) * ( 9 - 6 ) In => 1, 6, 8, 8; Out => ( 1 - 6 + 8 ) * 8 In => 1, 6, 8, 9; Out => 1 + 6 + 8 + 9 In => 1, 6, 9, 9; Out => 1 * 6 + 9 + 9 In => 1, 7, 7, 7; Out => In => 1, 7, 7, 8; Out => In => 1, 7, 7, 9; Out => 1 + 7 + 7 + 9 In => 1, 7, 8, 8; Out => 1 + 7 + 8 + 8 In => 1, 7, 8, 9; Out => 1 * 7 + 8 + 9 In => 1, 7, 9, 9; Out => 7 + 9 + 9 - 1 In => 1, 8, 8, 8; Out => 1 * 8 + 8 + 8 In => 1, 8, 8, 9; Out => 8 + 8 + 9 - 1 In => 1, 8, 9, 9; Out => In => 1, 9, 9, 9; Out => In => 2, 2, 2, 2; Out => In => 2, 2, 2, 3; Out => 2 * 2 * 2 * 3 In => 2, 2, 2, 4; Out => ( 2 + 2 + 2 ) * 4 In => 2, 2, 2, 5; Out => ( 2 + 2 * 5 ) * 2 In => 2, 2, 2, 6; Out => In => 2, 2, 2, 7; Out => ( 2 * 7 - 2 ) * 2 In => 2, 2, 2, 8; Out => ( 2 + 2 / 2 ) * 8 In => 2, 2, 2, 9; Out => 2 + 2 * ( 2 + 9 ) In => 2, 2, 3, 3; Out => ( 2 + 2 * 3 ) * 3 In => 2, 2, 3, 4; Out => ( 2 + 2 + 4 ) * 3 In => 2, 2, 3, 5; Out => ( 2 * 5 - 2 ) * 3 In => 2, 2, 3, 6; Out => ( 2 / 2 + 3 ) * 6 In => 2, 2, 3, 7; Out => ( 2 / 2 + 7 ) * 3 In => 2, 2, 3, 8; Out => 2 - 2 + 3 * 8 In => 2, 2, 3, 9; Out => 2 * 3 + 9 * 2 In => 2, 2, 4, 4; Out => ( 2 * 4 + 4 ) * 2 In => 2, 2, 4, 5; Out => 2 + 2 + 4 * 5 In => 2, 2, 4, 6; Out => 2 - 2 + 4 * 6 In => 2, 2, 4, 7; Out => 2 * 2 * 7 - 4 In => 2, 2, 4, 8; Out => 2 * 2 * 4 + 8 In => 2, 2, 4, 9; Out => 2 + 2 * 9 + 4 In => 2, 2, 5, 5; Out => 5 * 5 - 2 / 2 In => 2, 2, 5, 6; Out => ( 5 - 2 / 2 ) * 6 In => 2, 2, 5, 7; Out => 2 * 5 + 7 * 2 In => 2, 2, 5, 8; Out => ( 5 + 8 ) * 2 - 2 In => 2, 2, 5, 9; Out => ( 5 + 9 - 2 ) * 2 In => 2, 2, 6, 6; Out => 2 * 6 + 6 * 2 In => 2, 2, 6, 7; Out => 6 + 2 * ( 2 + 7 ) In => 2, 2, 6, 8; Out => 2 + 2 * 8 + 6 In => 2, 2, 6, 9; Out => ( 2 * 9 - 6 ) * 2 In => 2, 2, 7, 7; Out => ( 7 + 7 - 2 ) * 2 In => 2, 2, 7, 8; Out => 2 + 2 * 7 + 8 In => 2, 2, 7, 9; Out => In => 2, 2, 8, 8; Out => 2 * 2 * 8 - 8 In => 2, 2, 8, 9; Out => 2 * 9 - 2 + 8 In => 2, 2, 9, 9; Out => In => 2, 3, 3, 3; Out => ( 2 + 3 + 3 ) * 3 In => 2, 3, 3, 4; Out => In => 2, 3, 3, 5; Out => ( 3 * 5 - 3 ) * 2 In => 2, 3, 3, 6; Out => 2 * 3 + 3 * 6 In => 2, 3, 3, 7; Out => ( 3 + 7 - 2 ) * 3 In => 2, 3, 3, 8; Out => ( 2 + 3 / 3 ) * 8 In => 2, 3, 3, 9; Out => 2 * 9 + 3 + 3 In => 2, 3, 4, 4; Out => 3 * 4 * 4 / 2 In => 2, 3, 4, 5; Out => ( 3 + 4 + 5 ) * 2 In => 2, 3, 4, 6; Out => 2 + 3 * 6 + 4 In => 2, 3, 4, 7; Out => ( 2 - 3 + 7 ) * 4 In => 2, 3, 4, 8; Out => ( 2 - 3 + 4 ) * 8 In => 2, 3, 4, 9; Out => 2 / 3 * 4 * 9 In => 2, 3, 5, 5; Out => 2 - 3 + 5 * 5 In => 2, 3, 5, 6; Out => 2 * 3 * 5 - 6 In => 2, 3, 5, 7; Out => 2 + 3 * 5 + 7 In => 2, 3, 5, 8; Out => 2 * 8 + 3 + 5 In => 2, 3, 5, 9; Out => 2 + 3 * 9 - 5 In => 2, 3, 6, 6; Out => 2 / 3 * 6 * 6 In => 2, 3, 6, 7; Out => 3 + 6 * 7 / 2 In => 2, 3, 6, 8; Out => 3 * 6 + 8 - 2 In => 2, 3, 6, 9; Out => 2 * 6 + 9 + 3 In => 2, 3, 7, 7; Out => 2 * 7 + 7 + 3 In => 2, 3, 7, 8; Out => ( 7 + 8 - 3 ) * 2 In => 2, 3, 7, 9; Out => ( 3 * 7 - 9 ) * 2 In => 2, 3, 8, 8; Out => ( 2 * 8 - 8 ) * 3 In => 2, 3, 8, 9; Out => ( 9 - 2 * 3 ) * 8 In => 2, 3, 9, 9; Out => 2 * 3 + 9 + 9 In => 2, 4, 4, 4; Out => 2 * 4 + 4 * 4 In => 2, 4, 4, 5; Out => ( 2 * 5 - 4 ) * 4 In => 2, 4, 4, 6; Out => 2 + 4 * 4 + 6 In => 2, 4, 4, 7; Out => 2 * 4 * ( 7 - 4 ) In => 2, 4, 4, 8; Out => 2 * 4 * 4 - 8 In => 2, 4, 4, 9; Out => ( 9 - 2 ) * 4 - 4 In => 2, 4, 5, 5; Out => 4 + 2 * ( 5 + 5 ) In => 2, 4, 5, 6; Out => 4 * 5 + 6 - 2 In => 2, 4, 5, 7; Out => 4 / 2 * ( 5 + 7 ) In => 2, 4, 5, 8; Out => 4 + 5 * 8 / 2 In => 2, 4, 5, 9; Out => ( 2 - 5 + 9 ) * 4 In => 2, 4, 6, 6; Out => ( 2 - 4 + 6 ) * 6 In => 2, 4, 6, 7; Out => 2 + 4 * 7 - 6 In => 2, 4, 6, 8; Out => 2 / 4 * 6 * 8 In => 2, 4, 6, 9; Out => 4 * 9 - 2 * 6 In => 2, 4, 7, 7; Out => ( 7 + 7 ) * 2 - 4 In => 2, 4, 7, 8; Out => 4 * 7 - 8 / 2 In => 2, 4, 7, 9; Out => 2 * 4 + 7 + 9 In => 2, 4, 8, 8; Out => 2 * 4 + 8 + 8 In => 2, 4, 8, 9; Out => ( 9 - 2 - 4 ) * 8 In => 2, 4, 9, 9; Out => 2 + 4 + 9 + 9 In => 2, 5, 5, 5; Out => In => 2, 5, 5, 6; Out => In => 2, 5, 5, 7; Out => 2 * 7 + 5 + 5 In => 2, 5, 5, 8; Out => ( 2 + 5 / 5 ) * 8 In => 2, 5, 5, 9; Out => 2 * 5 + 5 + 9 In => 2, 5, 6, 6; Out => ( 2 * 5 - 6 ) * 6 In => 2, 5, 6, 7; Out => 2 * 6 + 7 + 5 In => 2, 5, 6, 8; Out => 2 + 5 * 6 - 8 In => 2, 5, 6, 9; Out => 5 * 6 / 2 + 9 In => 2, 5, 7, 7; Out => 2 * 5 + 7 + 7 In => 2, 5, 7, 8; Out => ( 2 * 5 - 7 ) * 8 In => 2, 5, 7, 9; Out => 5 * 7 - 9 - 2 In => 2, 5, 8, 8; Out => 5 * 8 - 8 * 2 In => 2, 5, 8, 9; Out => 2 + 5 + 8 + 9 In => 2, 5, 9, 9; Out => In => 2, 6, 6, 6; Out => 2 * 6 + 6 + 6 In => 2, 6, 6, 7; Out => ( 6 + 6 * 7 ) / 2 In => 2, 6, 6, 8; Out => ( 2 + 6 / 6 ) * 8 In => 2, 6, 6, 9; Out => ( 6 * 9 - 6 ) / 2 In => 2, 6, 7, 7; Out => In => 2, 6, 7, 8; Out => ( 2 - 6 + 7 ) * 8 In => 2, 6, 7, 9; Out => 2 + 6 + 7 + 9 In => 2, 6, 8, 8; Out => 2 + 6 + 8 + 8 In => 2, 6, 8, 9; Out => 2 / 6 * 8 * 9 In => 2, 6, 9, 9; Out => ( 2 + 6 / 9 ) * 9 In => 2, 7, 7, 7; Out => In => 2, 7, 7, 8; Out => 2 + 7 + 7 + 8 In => 2, 7, 7, 9; Out => In => 2, 7, 8, 8; Out => ( 2 - 7 + 8 ) * 8 In => 2, 7, 8, 9; Out => ( 7 + 9 ) * 2 - 8 In => 2, 7, 9, 9; Out => In => 2, 8, 8, 8; Out => 8 * 8 / 2 - 8 In => 2, 8, 8, 9; Out => ( 2 - 8 + 9 ) * 8 In => 2, 8, 9, 9; Out => 8 + 9 + 9 - 2 In => 2, 9, 9, 9; Out => In => 3, 3, 3, 3; Out => 3 * 3 * 3 - 3 In => 3, 3, 3, 4; Out => ( 3 * 3 - 3 ) * 4 In => 3, 3, 3, 5; Out => 3 * 3 + 3 * 5 In => 3, 3, 3, 6; Out => 3 + 3 + 3 * 6 In => 3, 3, 3, 7; Out => ( 3 / 3 + 7 ) * 3 In => 3, 3, 3, 8; Out => 3 - 3 + 3 * 8 In => 3, 3, 3, 9; Out => ( 9 - 3 / 3 ) * 3 In => 3, 3, 4, 4; Out => 3 * 4 + 4 * 3 In => 3, 3, 4, 5; Out => ( 3 / 3 + 5 ) * 4 In => 3, 3, 4, 6; Out => 3 - 3 + 4 * 6 In => 3, 3, 4, 7; Out => ( 4 + 7 - 3 ) * 3 In => 3, 3, 4, 8; Out => ( 4 - 3 / 3 ) * 8 In => 3, 3, 4, 9; Out => 3 + 3 * 4 + 9 In => 3, 3, 5, 5; Out => 5 * 5 - 3 / 3 In => 3, 3, 5, 6; Out => 3 + 3 * 5 + 6 In => 3, 3, 5, 7; Out => ( 3 * 5 - 7 ) * 3 In => 3, 3, 5, 8; Out => In => 3, 3, 5, 9; Out => ( 5 + 9 / 3 ) * 3 In => 3, 3, 6, 6; Out => ( 6 + 6 / 3 ) * 3 In => 3, 3, 6, 7; Out => 3 * 7 - 3 + 6 In => 3, 3, 6, 8; Out => ( 3 * 3 - 6 ) * 8 In => 3, 3, 6, 9; Out => 3 * 3 + 6 + 9 In => 3, 3, 7, 7; Out => ( 3 + 3 / 7 ) * 7 In => 3, 3, 7, 8; Out => 3 * 3 + 7 + 8 In => 3, 3, 7, 9; Out => 3 + 7 * 9 / 3 In => 3, 3, 8, 8; Out => 8 / ( 3 - 8 / 3 ) In => 3, 3, 8, 9; Out => ( 9 - 3 - 3 ) * 8 In => 3, 3, 9, 9; Out => 3 + 3 + 9 + 9 In => 3, 4, 4, 4; Out => ( 3 + 4 ) * 4 - 4 In => 3, 4, 4, 5; Out => 3 + 4 * 4 + 5 In => 3, 4, 4, 6; Out => ( 3 + 4 / 4 ) * 6 In => 3, 4, 4, 7; Out => ( 3 - 4 + 7 ) * 4 In => 3, 4, 4, 8; Out => 3 / 4 * 4 * 8 In => 3, 4, 4, 9; Out => 4 * 9 - 3 * 4 In => 3, 4, 5, 5; Out => 3 - 4 + 5 * 5 In => 3, 4, 5, 6; Out => ( 3 - 4 + 5 ) * 6 In => 3, 4, 5, 7; Out => 3 * 4 + 5 + 7 In => 3, 4, 5, 8; Out => 4 * 8 - 3 - 5 In => 3, 4, 5, 9; Out => ( 3 * 5 - 9 ) * 4 In => 3, 4, 6, 6; Out => 3 * 4 + 6 + 6 In => 3, 4, 6, 7; Out => In => 3, 4, 6, 8; Out => ( 3 * 4 - 8 ) * 6 In => 3, 4, 6, 9; Out => ( 3 - 6 + 9 ) * 4 In => 3, 4, 7, 7; Out => 3 + 4 * 7 - 7 In => 3, 4, 7, 8; Out => 8 - 4 * ( 3 - 7 ) In => 3, 4, 7, 9; Out => 3 * 9 + 4 - 7 In => 3, 4, 8, 8; Out => In => 3, 4, 8, 9; Out => 3 + 4 + 8 + 9 In => 3, 4, 9, 9; Out => 4 * 9 - 9 - 3 In => 3, 5, 5, 5; Out => In => 3, 5, 5, 6; Out => ( 3 + 5 / 5 ) * 6 In => 3, 5, 5, 7; Out => ( 5 / 5 + 7 ) * 3 In => 3, 5, 5, 8; Out => 3 / 5 * 5 * 8 In => 3, 5, 5, 9; Out => ( 3 + 9 / 5 ) * 5 In => 3, 5, 6, 6; Out => ( 3 - 5 + 6 ) * 6 In => 3, 5, 6, 7; Out => ( 6 + 7 - 5 ) * 3 In => 3, 5, 6, 8; Out => ( 5 - 6 / 3 ) * 8 In => 3, 5, 6, 9; Out => 3 + 5 * 6 - 9 In => 3, 5, 7, 7; Out => In => 3, 5, 7, 8; Out => 3 * 7 + 8 - 5 In => 3, 5, 7, 9; Out => 3 + 5 + 7 + 9 In => 3, 5, 8, 8; Out => 3 + 5 + 8 + 8 In => 3, 5, 8, 9; Out => 3 * 9 + 5 - 8 In => 3, 5, 9, 9; Out => 5 * 9 / 3 + 9 In => 3, 6, 6, 6; Out => ( 3 + 6 / 6 ) * 6 In => 3, 6, 6, 7; Out => 6 * 7 - 3 * 6 In => 3, 6, 6, 8; Out => 3 / 6 * 6 * 8 In => 3, 6, 6, 9; Out => 3 + 6 + 6 + 9 In => 3, 6, 7, 7; Out => ( 3 + 7 / 7 ) * 6 In => 3, 6, 7, 8; Out => 3 + 6 + 7 + 8 In => 3, 6, 7, 9; Out => 3 * 7 + 9 - 6 In => 3, 6, 8, 8; Out => 6 * 8 - 8 * 3 In => 3, 6, 8, 9; Out => ( 3 - 8 + 9 ) * 6 In => 3, 6, 9, 9; Out => 3 * 9 - 9 + 6 In => 3, 7, 7, 7; Out => 3 + 7 + 7 + 7 In => 3, 7, 7, 8; Out => 3 / 7 * 7 * 8 In => 3, 7, 7, 9; Out => ( 9 - 7 / 7 ) * 3 In => 3, 7, 8, 8; Out => ( 7 + 8 / 8 ) * 3 In => 3, 7, 8, 9; Out => ( 7 - 8 + 9 ) * 3 In => 3, 7, 9, 9; Out => ( 7 + 9 / 9 ) * 3 In => 3, 8, 8, 8; Out => 3 / 8 * 8 * 8 In => 3, 8, 8, 9; Out => ( 9 - 8 / 8 ) * 3 In => 3, 8, 9, 9; Out => 3 * 8 + 9 - 9 In => 3, 9, 9, 9; Out => 9 + 9 + 9 - 3 In => 4, 4, 4, 4; Out => 4 + 4 + 4 * 4 In => 4, 4, 4, 5; Out => ( 4 / 4 + 5 ) * 4 In => 4, 4, 4, 6; Out => 4 - 4 + 4 * 6 In => 4, 4, 4, 7; Out => ( 7 - 4 / 4 ) * 4 In => 4, 4, 4, 8; Out => 4 * 8 - 4 - 4 In => 4, 4, 4, 9; Out => 4 - 4 * ( 4 - 9 ) In => 4, 4, 5, 5; Out => 5 * 5 - 4 / 4 In => 4, 4, 5, 6; Out => ( 5 - 4 / 4 ) * 6 In => 4, 4, 5, 7; Out => ( 4 - 5 + 7 ) * 4 In => 4, 4, 5, 8; Out => 4 * 5 + 8 - 4 In => 4, 4, 5, 9; Out => In => 4, 4, 6, 6; Out => In => 4, 4, 6, 7; Out => In => 4, 4, 6, 8; Out => ( 4 - 6 + 8 ) * 4 In => 4, 4, 6, 9; Out => 4 * 4 / 6 * 9 In => 4, 4, 7, 7; Out => ( 4 - 4 / 7 ) * 7 In => 4, 4, 7, 8; Out => 4 + 4 * 7 - 8 In => 4, 4, 7, 9; Out => 4 + 4 + 7 + 9 In => 4, 4, 8, 8; Out => 4 + 4 + 8 + 8 In => 4, 4, 8, 9; Out => 4 * 9 - 4 - 8 In => 4, 4, 9, 9; Out => In => 4, 5, 5, 5; Out => 4 + 5 * 5 - 5 In => 4, 5, 5, 6; Out => 4 / 5 * 5 * 6 In => 4, 5, 5, 7; Out => ( 7 - 5 / 5 ) * 4 In => 4, 5, 5, 8; Out => ( 4 - 5 / 5 ) * 8 In => 4, 5, 5, 9; Out => 4 * 5 - 5 + 9 In => 4, 5, 6, 6; Out => ( 5 + 6 / 6 ) * 4 In => 4, 5, 6, 7; Out => ( 5 - 6 + 7 ) * 4 In => 4, 5, 6, 8; Out => ( 4 + 5 - 6 ) * 8 In => 4, 5, 6, 9; Out => 4 + 5 + 6 + 9 In => 4, 5, 7, 7; Out => 5 * 7 - 7 - 4 In => 4, 5, 7, 8; Out => 4 + 5 + 7 + 8 In => 4, 5, 7, 9; Out => 4 * 7 - 9 + 5 In => 4, 5, 8, 8; Out => ( 5 + 8 / 8 ) * 4 In => 4, 5, 8, 9; Out => ( 5 - 8 + 9 ) * 4 In => 4, 5, 9, 9; Out => ( 5 + 9 / 9 ) * 4 In => 4, 6, 6, 6; Out => 4 / 6 * 6 * 6 In => 4, 6, 6, 7; Out => ( 7 - 6 / 6 ) * 4 In => 4, 6, 6, 8; Out => 4 + 6 + 6 + 8 In => 4, 6, 6, 9; Out => 4 * 9 - 6 - 6 In => 4, 6, 7, 7; Out => 4 + 6 + 7 + 7 In => 4, 6, 7, 8; Out => ( 4 + 6 - 7 ) * 8 In => 4, 6, 7, 9; Out => 6 / 4 * ( 7 + 9 ) In => 4, 6, 8, 8; Out => 4 * 6 + 8 - 8 In => 4, 6, 8, 9; Out => 6 + 8 * 9 / 4 In => 4, 6, 9, 9; Out => 4 * 6 + 9 - 9 In => 4, 7, 7, 7; Out => ( 7 - 7 / 7 ) * 4 In => 4, 7, 7, 8; Out => ( 4 - 7 / 7 ) * 8 In => 4, 7, 7, 9; Out => In => 4, 7, 8, 8; Out => 7 * 8 - 8 * 4 In => 4, 7, 8, 9; Out => ( 7 + 8 - 9 ) * 4 In => 4, 7, 9, 9; Out => ( 7 - 9 / 9 ) * 4 In => 4, 8, 8, 8; Out => 8 + 8 * 8 / 4 In => 4, 8, 8, 9; Out => ( 4 + 8 - 9 ) * 8 In => 4, 8, 9, 9; Out => ( 4 - 9 / 9 ) * 8 In => 4, 9, 9, 9; Out => In => 5, 5, 5, 5; Out => 5 * 5 - 5 / 5 In => 5, 5, 5, 6; Out => 5 + 5 * 5 - 6 In => 5, 5, 5, 7; Out => In => 5, 5, 5, 8; Out => In => 5, 5, 5, 9; Out => 5 + 5 + 5 + 9 In => 5, 5, 6, 6; Out => 5 * 5 - 6 / 6 In => 5, 5, 6, 7; Out => 5 * 5 + 6 - 7 In => 5, 5, 6, 8; Out => 5 + 5 + 6 + 8 In => 5, 5, 6, 9; Out => In => 5, 5, 7, 7; Out => 5 + 5 + 7 + 7 In => 5, 5, 7, 8; Out => 5 * 5 + 7 - 8 In => 5, 5, 7, 9; Out => In => 5, 5, 8, 8; Out => 5 * 5 - 8 / 8 In => 5, 5, 8, 9; Out => 5 * 5 + 8 - 9 In => 5, 5, 9, 9; Out => 5 * 5 - 9 / 9 In => 5, 6, 6, 6; Out => ( 5 - 6 / 6 ) * 6 In => 5, 6, 6, 7; Out => 5 + 6 + 6 + 7 In => 5, 6, 6, 8; Out => 6 + 6 * ( 8 - 5 ) In => 5, 6, 6, 9; Out => 6 * 9 - 5 * 6 In => 5, 6, 7, 7; Out => ( 5 - 7 / 7 ) * 6 In => 5, 6, 7, 8; Out => ( 5 + 7 - 8 ) * 6 In => 5, 6, 7, 9; Out => 6 - 9 * ( 5 - 7 ) In => 5, 6, 8, 8; Out => ( 5 + 6 - 8 ) * 8 In => 5, 6, 8, 9; Out => ( 5 + 8 - 9 ) * 6 In => 5, 6, 9, 9; Out => ( 5 - 9 / 9 ) * 6 In => 5, 7, 7, 7; Out => In => 5, 7, 7, 8; Out => In => 5, 7, 7, 9; Out => ( 5 + 7 ) * ( 9 - 7 ) In => 5, 7, 8, 8; Out => 8 - 8 * ( 5 - 7 ) In => 5, 7, 8, 9; Out => 5 * 8 - 9 - 7 In => 5, 7, 9, 9; Out => In => 5, 8, 8, 8; Out => 5 * 8 - 8 - 8 In => 5, 8, 8, 9; Out => 8 * 9 / ( 8 - 5 ) In => 5, 8, 9, 9; Out => In => 5, 9, 9, 9; Out => In => 6, 6, 6, 6; Out => 6 + 6 + 6 + 6 In => 6, 6, 6, 7; Out => In => 6, 6, 6, 8; Out => ( 6 + 6 - 8 ) * 6 In => 6, 6, 6, 9; Out => 6 * 6 * 6 / 9 In => 6, 6, 7, 7; Out => In => 6, 6, 7, 8; Out => In => 6, 6, 7, 9; Out => ( 6 + 7 - 9 ) * 6 In => 6, 6, 8, 8; Out => 6 * 8 / ( 8 - 6 ) In => 6, 6, 8, 9; Out => ( 6 + 6 - 9 ) * 8 In => 6, 6, 9, 9; Out => In => 6, 7, 7, 7; Out => In => 6, 7, 7, 8; Out => In => 6, 7, 7, 9; Out => In => 6, 7, 8, 8; Out => In => 6, 7, 8, 9; Out => 6 * 8 / ( 9 - 7 ) In => 6, 7, 9, 9; Out => 6 * 7 - 9 - 9 In => 6, 8, 8, 8; Out => 8 + 8 * ( 8 - 6 ) In => 6, 8, 8, 9; Out => 8 * 9 - 6 * 8 In => 6, 8, 9, 9; Out => 8 * 9 / ( 9 - 6 ) In => 6, 9, 9, 9; Out => In => 7, 7, 7, 7; Out => In => 7, 7, 7, 8; Out => In => 7, 7, 7, 9; Out => In => 7, 7, 8, 8; Out => In => 7, 7, 8, 9; Out => In => 7, 7, 9, 9; Out => In => 7, 8, 8, 8; Out => In => 7, 8, 8, 9; Out => 8 + 8 * ( 9 - 7 ) In => 7, 8, 9, 9; Out => In => 7, 9, 9, 9; Out => In => 8, 8, 8, 8; Out => In => 8, 8, 8, 9; Out => In => 8, 8, 9, 9; Out => In => 8, 9, 9, 9; Out => In => 9, 9, 9, 9; Out =>
[ 25. September 2002, 00:48: Message edited by: Jack Lothian ]
_________________________
Jack
|
Top
|
|
|
|
#70136 - 2002-09-25 01:54 AM
Re: KixGolf Results/Code
|
Fernando Madruga
Starting to like KiXtart
Registered: 2002-08-21
Posts: 149
Loc: Coimbra.Portugal.Europe.Earth....
|
Well, Shawn, I must admit that I've had much fun these past weeks in this board, but KiXtart won't cut it for me for "real" work: nothing worse than having to solve some misterious problem, and having to fight the language at the same time... Not that this kind of thing won't happen in other languages, but it's just not that bad... I'm learning Python now (not for the same reason I wanted KiXtart, of course!) and having a decent editor/debugger sure makes the tables turn... Plus, it's a much more "challenging" language to learn and I like most of what I found in it (Python). In short, I'm commited to leave KiXtart for any serious work, but I may as well end up visiting you guys here from time to time. I had more fun participating in this game without actually being one of the competitors than if I did compete!
_________________________
Later,
[b]Mad[/b]ruga
|
Top
|
|
|
|
#70137 - 2002-09-25 02:01 AM
Re: KixGolf Results/Code
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
(ab)cd (ab)(cd) (abc)d a(bcd)
it's in there
|
Top
|
|
|
|
#70141 - 2002-09-25 02:38 AM
Re: KixGolf Results/Code
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
I can add the "()"'s quickly and easily if it is required.
|
Top
|
|
|
|
#70142 - 2002-09-25 02:45 AM
Re: KixGolf Results/Code
|
Jack Lothian
MM club member
Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
|
Howard,
I don't know how you did it either great luck or great logic but you choose a subset of bracket combinations that works. If any one wishes to validate their code use the routine below. If it passes this code it works.
code:
dim $m, $rc $rc=SETOPTION('Explicit','ON') $rc=SETOPTION('NoVarsInString','ON') redirectoutput("game24.txt",1) $m=test24(0,0,0,0,2) $m=test24(0,0,0,1,2) $m=test24(0,0,0,2,2) $m=test24(0,0,0,3,2) $m=test24(0,0,0,4,2) $m=test24(0,0,0,5,2) $m=test24(0,0,0,6,2) $m=test24(0,0,0,7,2) $m=test24(0,0,0,8,2) $m=test24(0,0,0,9,2) $m=test24(0,0,1,1,2) $m=test24(0,0,1,2,2) $m=test24(0,0,1,3,2) $m=test24(0,0,1,4,2) $m=test24(0,0,1,5,2) $m=test24(0,0,1,6,2) $m=test24(0,0,1,7,2) $m=test24(0,0,1,8,2) $m=test24(0,0,1,9,2) $m=test24(0,0,2,2,2) $m=test24(0,0,2,3,2) $m=test24(0,0,2,4,2) $m=test24(0,0,2,5,2) $m=test24(0,0,2,6,2) $m=test24(0,0,2,7,2) $m=test24(0,0,2,8,2) $m=test24(0,0,2,9,2) $m=test24(0,0,3,3,2) $m=test24(0,0,3,4,2) $m=test24(0,0,3,5,2) $m=test24(0,0,3,6,2) $m=test24(0,0,3,7,2) $m=test24(0,0,3,8,1) $m=test24(0,0,3,9,2) $m=test24(0,0,4,4,2) $m=test24(0,0,4,5,2) $m=test24(0,0,4,6,1) $m=test24(0,0,4,7,2) $m=test24(0,0,4,8,2) $m=test24(0,0,4,9,2) $m=test24(0,0,5,5,2) $m=test24(0,0,5,6,2) $m=test24(0,0,5,7,2) $m=test24(0,0,5,8,2) $m=test24(0,0,5,9,2) $m=test24(0,0,6,6,2) $m=test24(0,0,6,7,2) $m=test24(0,0,6,8,2) $m=test24(0,0,6,9,2) $m=test24(0,0,7,7,2) $m=test24(0,0,7,8,2) $m=test24(0,0,7,9,2) $m=test24(0,0,8,8,2) $m=test24(0,0,8,9,2) $m=test24(0,0,9,9,2) $m=test24(0,1,1,1,2) $m=test24(0,1,1,2,2) $m=test24(0,1,1,3,2) $m=test24(0,1,1,4,2) $m=test24(0,1,1,5,2) $m=test24(0,1,1,6,2) $m=test24(0,1,1,7,2) $m=test24(0,1,1,8,2) $m=test24(0,1,1,9,2) $m=test24(0,1,2,2,2) $m=test24(0,1,2,3,2) $m=test24(0,1,2,4,2) $m=test24(0,1,2,5,2) $m=test24(0,1,2,6,2) $m=test24(0,1,2,7,2) $m=test24(0,1,2,8,1) $m=test24(0,1,2,9,2) $m=test24(0,1,3,3,2) $m=test24(0,1,3,4,2) $m=test24(0,1,3,5,2) $m=test24(0,1,3,6,1) $m=test24(0,1,3,7,1) $m=test24(0,1,3,8,1) $m=test24(0,1,3,9,1) $m=test24(0,1,4,4,2) $m=test24(0,1,4,5,1) $m=test24(0,1,4,6,1) $m=test24(0,1,4,7,1) $m=test24(0,1,4,8,1) $m=test24(0,1,4,9,2) $m=test24(0,1,5,5,1) $m=test24(0,1,5,6,1) $m=test24(0,1,5,7,2) $m=test24(0,1,5,8,2) $m=test24(0,1,5,9,2) $m=test24(0,1,6,6,2) $m=test24(0,1,6,7,2) $m=test24(0,1,6,8,2) $m=test24(0,1,6,9,2) $m=test24(0,1,7,7,2) $m=test24(0,1,7,8,2) $m=test24(0,1,7,9,2) $m=test24(0,1,8,8,2) $m=test24(0,1,8,9,2) $m=test24(0,1,9,9,2) $m=test24(0,2,2,2,2) $m=test24(0,2,2,3,2) $m=test24(0,2,2,4,2) $m=test24(0,2,2,5,2) $m=test24(0,2,2,6,1) $m=test24(0,2,2,7,2) $m=test24(0,2,2,8,2) $m=test24(0,2,2,9,2) $m=test24(0,2,3,3,2) $m=test24(0,2,3,4,1) $m=test24(0,2,3,5,2) $m=test24(0,2,3,6,1) $m=test24(0,2,3,7,2) $m=test24(0,2,3,8,1) $m=test24(0,2,3,9,1) $m=test24(0,2,4,4,1) $m=test24(0,2,4,5,2) $m=test24(0,2,4,6,1) $m=test24(0,2,4,7,2) $m=test24(0,2,4,8,1) $m=test24(0,2,4,9,2) $m=test24(0,2,5,5,2) $m=test24(0,2,5,6,2) $m=test24(0,2,5,7,1) $m=test24(0,2,5,8,1) $m=test24(0,2,5,9,2) $m=test24(0,2,6,6,1) $m=test24(0,2,6,7,2) $m=test24(0,2,6,8,1) $m=test24(0,2,6,9,1) $m=test24(0,2,7,7,2) $m=test24(0,2,7,8,2) $m=test24(0,2,7,9,2) $m=test24(0,2,8,8,1) $m=test24(0,2,8,9,2) $m=test24(0,2,9,9,2) $m=test24(0,3,3,3,2) $m=test24(0,3,3,4,1) $m=test24(0,3,3,5,1) $m=test24(0,3,3,6,2) $m=test24(0,3,3,7,1) $m=test24(0,3,3,8,1) $m=test24(0,3,3,9,1) $m=test24(0,3,4,4,1) $m=test24(0,3,4,5,2) $m=test24(0,3,4,6,1) $m=test24(0,3,4,7,2) $m=test24(0,3,4,8,1) $m=test24(0,3,4,9,1) $m=test24(0,3,5,5,2) $m=test24(0,3,5,6,2) $m=test24(0,3,5,7,2) $m=test24(0,3,5,8,1) $m=test24(0,3,5,9,1) $m=test24(0,3,6,6,1) $m=test24(0,3,6,7,1) $m=test24(0,3,6,8,1) $m=test24(0,3,6,9,2) $m=test24(0,3,7,7,2) $m=test24(0,3,7,8,1) $m=test24(0,3,7,9,2) $m=test24(0,3,8,8,1) $m=test24(0,3,8,9,1) $m=test24(0,3,9,9,2) $m=test24(0,4,4,4,2) $m=test24(0,4,4,5,1) $m=test24(0,4,4,6,1) $m=test24(0,4,4,7,1) $m=test24(0,4,4,8,1) $m=test24(0,4,4,9,2) $m=test24(0,4,5,5,2) $m=test24(0,4,5,6,1) $m=test24(0,4,5,7,2) $m=test24(0,4,5,8,2) $m=test24(0,4,5,9,2) $m=test24(0,4,6,6,1) $m=test24(0,4,6,7,1) $m=test24(0,4,6,8,1) $m=test24(0,4,6,9,1) $m=test24(0,4,7,7,2) $m=test24(0,4,7,8,1) $m=test24(0,4,7,9,2) $m=test24(0,4,8,8,1) $m=test24(0,4,8,9,2) $m=test24(0,4,9,9,2) $m=test24(0,5,5,5,2) $m=test24(0,5,5,6,2) $m=test24(0,5,5,7,2) $m=test24(0,5,5,8,2) $m=test24(0,5,5,9,2) $m=test24(0,5,6,6,1) $m=test24(0,5,6,7,2) $m=test24(0,5,6,8,2) $m=test24(0,5,6,9,1) $m=test24(0,5,7,7,2) $m=test24(0,5,7,8,2) $m=test24(0,5,7,9,2) $m=test24(0,5,8,8,1) $m=test24(0,5,8,9,2) $m=test24(0,5,9,9,2) $m=test24(0,6,6,6,2) $m=test24(0,6,6,7,2) $m=test24(0,6,6,8,2) $m=test24(0,6,6,9,2) $m=test24(0,6,7,7,2) $m=test24(0,6,7,8,2) $m=test24(0,6,7,9,2) $m=test24(0,6,8,8,2) $m=test24(0,6,8,9,1) $m=test24(0,6,9,9,1) $m=test24(0,7,7,7,2) $m=test24(0,7,7,8,2) $m=test24(0,7,7,9,2) $m=test24(0,7,8,8,2) $m=test24(0,7,8,9,1) $m=test24(0,7,9,9,2) $m=test24(0,8,8,8,1) $m=test24(0,8,8,9,2) $m=test24(0,8,9,9,2) $m=test24(0,9,9,9,2) $m=test24(1,1,1,1,2) $m=test24(1,1,1,2,2) $m=test24(1,1,1,3,2) $m=test24(1,1,1,4,2) $m=test24(1,1,1,5,2) $m=test24(1,1,1,6,2) $m=test24(1,1,1,7,2) $m=test24(1,1,1,8,1) $m=test24(1,1,1,9,2) $m=test24(1,1,2,2,2) $m=test24(1,1,2,3,2) $m=test24(1,1,2,4,2) $m=test24(1,1,2,5,2) $m=test24(1,1,2,6,1) $m=test24(1,1,2,7,1) $m=test24(1,1,2,8,1) $m=test24(1,1,2,9,1) $m=test24(1,1,3,3,2) $m=test24(1,1,3,4,1) $m=test24(1,1,3,5,1) $m=test24(1,1,3,6,1) $m=test24(1,1,3,7,1) $m=test24(1,1,3,8,1) $m=test24(1,1,3,9,1) $m=test24(1,1,4,4,1) $m=test24(1,1,4,5,1) $m=test24(1,1,4,6,1) $m=test24(1,1,4,7,1) $m=test24(1,1,4,8,1) $m=test24(1,1,4,9,1) $m=test24(1,1,5,5,1) $m=test24(1,1,5,6,1) $m=test24(1,1,5,7,1) $m=test24(1,1,5,8,1) $m=test24(1,1,5,9,2) $m=test24(1,1,6,6,1) $m=test24(1,1,6,7,2) $m=test24(1,1,6,8,1) $m=test24(1,1,6,9,1) $m=test24(1,1,7,7,2) $m=test24(1,1,7,8,2) $m=test24(1,1,7,9,2) $m=test24(1,1,8,8,1) $m=test24(1,1,8,9,2) $m=test24(1,1,9,9,2) $m=test24(1,2,2,2,2) $m=test24(1,2,2,3,2) $m=test24(1,2,2,4,1) $m=test24(1,2,2,5,1) $m=test24(1,2,2,6,1) $m=test24(1,2,2,7,1) $m=test24(1,2,2,8,1) $m=test24(1,2,2,9,1) $m=test24(1,2,3,3,1) $m=test24(1,2,3,4,1) $m=test24(1,2,3,5,1) $m=test24(1,2,3,6,1) $m=test24(1,2,3,7,1) $m=test24(1,2,3,8,1) $m=test24(1,2,3,9,1) $m=test24(1,2,4,4,1) $m=test24(1,2,4,5,1) $m=test24(1,2,4,6,1) $m=test24(1,2,4,7,1) $m=test24(1,2,4,8,1) $m=test24(1,2,4,9,1) $m=test24(1,2,5,5,1) $m=test24(1,2,5,6,1) $m=test24(1,2,5,7,1) $m=test24(1,2,5,8,1) $m=test24(1,2,5,9,1) $m=test24(1,2,6,6,1) $m=test24(1,2,6,7,1) $m=test24(1,2,6,8,1) $m=test24(1,2,6,9,1) $m=test24(1,2,7,7,1) $m=test24(1,2,7,8,1) $m=test24(1,2,7,9,1) $m=test24(1,2,8,8,1) $m=test24(1,2,8,9,1) $m=test24(1,2,9,9,2) $m=test24(1,3,3,3,1) $m=test24(1,3,3,4,1) $m=test24(1,3,3,5,1) $m=test24(1,3,3,6,1) $m=test24(1,3,3,7,1) $m=test24(1,3,3,8,1) $m=test24(1,3,3,9,1) $m=test24(1,3,4,4,1) $m=test24(1,3,4,5,1) $m=test24(1,3,4,6,1) $m=test24(1,3,4,7,1) $m=test24(1,3,4,8,1) $m=test24(1,3,4,9,1) $m=test24(1,3,5,5,2) $m=test24(1,3,5,6,1) $m=test24(1,3,5,7,1) $m=test24(1,3,5,8,1) $m=test24(1,3,5,9,1) $m=test24(1,3,6,6,1) $m=test24(1,3,6,7,1) $m=test24(1,3,6,8,1) $m=test24(1,3,6,9,1) $m=test24(1,3,7,7,1) $m=test24(1,3,7,8,1) $m=test24(1,3,7,9,1) $m=test24(1,3,8,8,1) $m=test24(1,3,8,9,1) $m=test24(1,3,9,9,1) $m=test24(1,4,4,4,1) $m=test24(1,4,4,5,1) $m=test24(1,4,4,6,1) $m=test24(1,4,4,7,1) $m=test24(1,4,4,8,1) $m=test24(1,4,4,9,1) $m=test24(1,4,5,5,1) $m=test24(1,4,5,6,1) $m=test24(1,4,5,7,1) $m=test24(1,4,5,8,1) $m=test24(1,4,5,9,1) $m=test24(1,4,6,6,1) $m=test24(1,4,6,7,1) $m=test24(1,4,6,8,1) $m=test24(1,4,6,9,1) $m=test24(1,4,7,7,1) $m=test24(1,4,7,8,1) $m=test24(1,4,7,9,1) $m=test24(1,4,8,8,1) $m=test24(1,4,8,9,1) $m=test24(1,4,9,9,2) $m=test24(1,5,5,5,1) $m=test24(1,5,5,6,1) $m=test24(1,5,5,7,2) $m=test24(1,5,5,8,2) $m=test24(1,5,5,9,1) $m=test24(1,5,6,6,1) $m=test24(1,5,6,7,1) $m=test24(1,5,6,8,1) $m=test24(1,5,6,9,1) $m=test24(1,5,7,7,2) $m=test24(1,5,7,8,1) $m=test24(1,5,7,9,1) $m=test24(1,5,8,8,1) $m=test24(1,5,8,9,1) $m=test24(1,5,9,9,1) $m=test24(1,6,6,6,1) $m=test24(1,6,6,7,2) $m=test24(1,6,6,8,1) $m=test24(1,6,6,9,1) $m=test24(1,6,7,7,2) $m=test24(1,6,7,8,2) $m=test24(1,6,7,9,1) $m=test24(1,6,8,8,1) $m=test24(1,6,8,9,1) $m=test24(1,6,9,9,1) $m=test24(1,7,7,7,2) $m=test24(1,7,7,8,2) $m=test24(1,7,7,9,1) $m=test24(1,7,8,8,1) $m=test24(1,7,8,9,1) $m=test24(1,7,9,9,1) $m=test24(1,8,8,8,1) $m=test24(1,8,8,9,1) $m=test24(1,8,9,9,2) $m=test24(1,9,9,9,2) $m=test24(2,2,2,2,2) $m=test24(2,2,2,3,1) $m=test24(2,2,2,4,1) $m=test24(2,2,2,5,1) $m=test24(2,2,2,6,2) $m=test24(2,2,2,7,1) $m=test24(2,2,2,8,1) $m=test24(2,2,2,9,1) $m=test24(2,2,3,3,1) $m=test24(2,2,3,4,1) $m=test24(2,2,3,5,1) $m=test24(2,2,3,6,1) $m=test24(2,2,3,7,1) $m=test24(2,2,3,8,1) $m=test24(2,2,3,9,1) $m=test24(2,2,4,4,1) $m=test24(2,2,4,5,1) $m=test24(2,2,4,6,1) $m=test24(2,2,4,7,1) $m=test24(2,2,4,8,1) $m=test24(2,2,4,9,1) $m=test24(2,2,5,5,1) $m=test24(2,2,5,6,1) $m=test24(2,2,5,7,1) $m=test24(2,2,5,8,1) $m=test24(2,2,5,9,1) $m=test24(2,2,6,6,1) $m=test24(2,2,6,7,1) $m=test24(2,2,6,8,1) $m=test24(2,2,6,9,1) $m=test24(2,2,7,7,1) $m=test24(2,2,7,8,1) $m=test24(2,2,7,9,2) $m=test24(2,2,8,8,1) $m=test24(2,2,8,9,1) $m=test24(2,2,9,9,2) $m=test24(2,3,3,3,1) $m=test24(2,3,3,4,2) $m=test24(2,3,3,5,1) $m=test24(2,3,3,6,1) $m=test24(2,3,3,7,1) $m=test24(2,3,3,8,1) $m=test24(2,3,3,9,1) $m=test24(2,3,4,4,1) $m=test24(2,3,4,5,1) $m=test24(2,3,4,6,1) $m=test24(2,3,4,7,1) $m=test24(2,3,4,8,1) $m=test24(2,3,4,9,1) $m=test24(2,3,5,5,1) $m=test24(2,3,5,6,1) $m=test24(2,3,5,7,1) $m=test24(2,3,5,8,1) $m=test24(2,3,5,9,1) $m=test24(2,3,6,6,1) $m=test24(2,3,6,7,1) $m=test24(2,3,6,8,1) $m=test24(2,3,6,9,1) $m=test24(2,3,7,7,1) $m=test24(2,3,7,8,1) $m=test24(2,3,7,9,1) $m=test24(2,3,8,8,1) $m=test24(2,3,8,9,1) $m=test24(2,3,9,9,1) $m=test24(2,4,4,4,1) $m=test24(2,4,4,5,1) $m=test24(2,4,4,6,1) $m=test24(2,4,4,7,1) $m=test24(2,4,4,8,1) $m=test24(2,4,4,9,1) $m=test24(2,4,5,5,1) $m=test24(2,4,5,6,1) $m=test24(2,4,5,7,1) $m=test24(2,4,5,8,1) $m=test24(2,4,5,9,1) $m=test24(2,4,6,6,1) $m=test24(2,4,6,7,1) $m=test24(2,4,6,8,1) $m=test24(2,4,6,9,1) $m=test24(2,4,7,7,1) $m=test24(2,4,7,8,1) $m=test24(2,4,7,9,1) $m=test24(2,4,8,8,1) $m=test24(2,4,8,9,1) $m=test24(2,4,9,9,1) $m=test24(2,5,5,5,2) $m=test24(2,5,5,6,2) $m=test24(2,5,5,7,1) $m=test24(2,5,5,8,1) $m=test24(2,5,5,9,1) $m=test24(2,5,6,6,1) $m=test24(2,5,6,7,1) $m=test24(2,5,6,8,1) $m=test24(2,5,6,9,1) $m=test24(2,5,7,7,1) $m=test24(2,5,7,8,1) $m=test24(2,5,7,9,1) $m=test24(2,5,8,8,1) $m=test24(2,5,8,9,1) $m=test24(2,5,9,9,2) $m=test24(2,6,6,6,1) $m=test24(2,6,6,7,1) $m=test24(2,6,6,8,1) $m=test24(2,6,6,9,1) $m=test24(2,6,7,7,2) $m=test24(2,6,7,8,1) $m=test24(2,6,7,9,1) $m=test24(2,6,8,8,1) $m=test24(2,6,8,9,1) $m=test24(2,6,9,9,1) $m=test24(2,7,7,7,2) $m=test24(2,7,7,8,1) $m=test24(2,7,7,9,2) $m=test24(2,7,8,8,1) $m=test24(2,7,8,9,1) $m=test24(2,7,9,9,2) $m=test24(2,8,8,8,1) $m=test24(2,8,8,9,1) $m=test24(2,8,9,9,1) $m=test24(2,9,9,9,2) $m=test24(3,3,3,3,1) $m=test24(3,3,3,4,1) $m=test24(3,3,3,5,1) $m=test24(3,3,3,6,1) $m=test24(3,3,3,7,1) $m=test24(3,3,3,8,1) $m=test24(3,3,3,9,1) $m=test24(3,3,4,4,1) $m=test24(3,3,4,5,1) $m=test24(3,3,4,6,1) $m=test24(3,3,4,7,1) $m=test24(3,3,4,8,1) $m=test24(3,3,4,9,1) $m=test24(3,3,5,5,1) $m=test24(3,3,5,6,1) $m=test24(3,3,5,7,1) $m=test24(3,3,5,8,2) $m=test24(3,3,5,9,1) $m=test24(3,3,6,6,1) $m=test24(3,3,6,7,1) $m=test24(3,3,6,8,1) $m=test24(3,3,6,9,1) $m=test24(3,3,7,7,1) $m=test24(3,3,7,8,1) $m=test24(3,3,7,9,1) $m=test24(3,3,8,8,1) $m=test24(3,3,8,9,1) $m=test24(3,3,9,9,1) $m=test24(3,4,4,4,1) $m=test24(3,4,4,5,1) $m=test24(3,4,4,6,1) $m=test24(3,4,4,7,1) $m=test24(3,4,4,8,1) $m=test24(3,4,4,9,1) $m=test24(3,4,5,5,1) $m=test24(3,4,5,6,1) $m=test24(3,4,5,7,1) $m=test24(3,4,5,8,1) $m=test24(3,4,5,9,1) $m=test24(3,4,6,6,1) $m=test24(3,4,6,7,2) $m=test24(3,4,6,8,1) $m=test24(3,4,6,9,1) $m=test24(3,4,7,7,1) $m=test24(3,4,7,8,1) $m=test24(3,4,7,9,1) $m=test24(3,4,8,8,2) $m=test24(3,4,8,9,1) $m=test24(3,4,9,9,1) $m=test24(3,5,5,5,2) $m=test24(3,5,5,6,1) $m=test24(3,5,5,7,1) $m=test24(3,5,5,8,1) $m=test24(3,5,5,9,1) $m=test24(3,5,6,6,1) $m=test24(3,5,6,7,1) $m=test24(3,5,6,8,1) $m=test24(3,5,6,9,1) $m=test24(3,5,7,7,2) $m=test24(3,5,7,8,1) $m=test24(3,5,7,9,1) $m=test24(3,5,8,8,1) $m=test24(3,5,8,9,1) $m=test24(3,5,9,9,1) $m=test24(3,6,6,6,1) $m=test24(3,6,6,7,1) $m=test24(3,6,6,8,1) $m=test24(3,6,6,9,1) $m=test24(3,6,7,7,1) $m=test24(3,6,7,8,1) $m=test24(3,6,7,9,1) $m=test24(3,6,8,8,1) $m=test24(3,6,8,9,1) $m=test24(3,6,9,9,1) $m=test24(3,7,7,7,1) $m=test24(3,7,7,8,1) $m=test24(3,7,7,9,1) $m=test24(3,7,8,8,1) $m=test24(3,7,8,9,1) $m=test24(3,7,9,9,1) $m=test24(3,8,8,8,1) $m=test24(3,8,8,9,1) $m=test24(3,8,9,9,1) $m=test24(3,9,9,9,1) $m=test24(4,4,4,4,1) $m=test24(4,4,4,5,1) $m=test24(4,4,4,6,1) $m=test24(4,4,4,7,1) $m=test24(4,4,4,8,1) $m=test24(4,4,4,9,1) $m=test24(4,4,5,5,1) $m=test24(4,4,5,6,1) $m=test24(4,4,5,7,1) $m=test24(4,4,5,8,1) $m=test24(4,4,5,9,2) $m=test24(4,4,6,6,2) $m=test24(4,4,6,7,2) $m=test24(4,4,6,8,1) $m=test24(4,4,6,9,1) $m=test24(4,4,7,7,1) $m=test24(4,4,7,8,1) $m=test24(4,4,7,9,1) $m=test24(4,4,8,8,1) $m=test24(4,4,8,9,1) $m=test24(4,4,9,9,2) $m=test24(4,5,5,5,1) $m=test24(4,5,5,6,1) $m=test24(4,5,5,7,1) $m=test24(4,5,5,8,1) $m=test24(4,5,5,9,1) $m=test24(4,5,6,6,1) $m=test24(4,5,6,7,1) $m=test24(4,5,6,8,1) $m=test24(4,5,6,9,1) $m=test24(4,5,7,7,1) $m=test24(4,5,7,8,1) $m=test24(4,5,7,9,1) $m=test24(4,5,8,8,1) $m=test24(4,5,8,9,1) $m=test24(4,5,9,9,1) $m=test24(4,6,6,6,1) $m=test24(4,6,6,7,1) $m=test24(4,6,6,8,1) $m=test24(4,6,6,9,1) $m=test24(4,6,7,7,1) $m=test24(4,6,7,8,1) $m=test24(4,6,7,9,1) $m=test24(4,6,8,8,1) $m=test24(4,6,8,9,1) $m=test24(4,6,9,9,1) $m=test24(4,7,7,7,1) $m=test24(4,7,7,8,1) $m=test24(4,7,7,9,2) $m=test24(4,7,8,8,1) $m=test24(4,7,8,9,1) $m=test24(4,7,9,9,1) $m=test24(4,8,8,8,1) $m=test24(4,8,8,9,1) $m=test24(4,8,9,9,1) $m=test24(4,9,9,9,2) $m=test24(5,5,5,5,1) $m=test24(5,5,5,6,1) $m=test24(5,5,5,7,2) $m=test24(5,5,5,8,2) $m=test24(5,5,5,9,1) $m=test24(5,5,6,6,1) $m=test24(5,5,6,7,1) $m=test24(5,5,6,8,1) $m=test24(5,5,6,9,2) $m=test24(5,5,7,7,1) $m=test24(5,5,7,8,1) $m=test24(5,5,7,9,2) $m=test24(5,5,8,8,1) $m=test24(5,5,8,9,1) $m=test24(5,5,9,9,1) $m=test24(5,6,6,6,1) $m=test24(5,6,6,7,1) $m=test24(5,6,6,8,1) $m=test24(5,6,6,9,1) $m=test24(5,6,7,7,1) $m=test24(5,6,7,8,1) $m=test24(5,6,7,9,1) $m=test24(5,6,8,8,1) $m=test24(5,6,8,9,1) $m=test24(5,6,9,9,1) $m=test24(5,7,7,7,2) $m=test24(5,7,7,8,2) $m=test24(5,7,7,9,1) $m=test24(5,7,8,8,1) $m=test24(5,7,8,9,1) $m=test24(5,7,9,9,2) $m=test24(5,8,8,8,1) $m=test24(5,8,8,9,1) $m=test24(5,8,9,9,2) $m=test24(5,9,9,9,2) $m=test24(6,6,6,6,1) $m=test24(6,6,6,7,2) $m=test24(6,6,6,8,1) $m=test24(6,6,6,9,1) $m=test24(6,6,7,7,2) $m=test24(6,6,7,8,2) $m=test24(6,6,7,9,1) $m=test24(6,6,8,8,1) $m=test24(6,6,8,9,1) $m=test24(6,6,9,9,2) $m=test24(6,7,7,7,2) $m=test24(6,7,7,8,2) $m=test24(6,7,7,9,2) $m=test24(6,7,8,8,2) $m=test24(6,7,8,9,1) $m=test24(6,7,9,9,1) $m=test24(6,8,8,8,1) $m=test24(6,8,8,9,1) $m=test24(6,8,9,9,1) $m=test24(6,9,9,9,2) $m=test24(7,7,7,7,2) $m=test24(7,7,7,8,2) $m=test24(7,7,7,9,2) $m=test24(7,7,8,8,2) $m=test24(7,7,8,9,2) $m=test24(7,7,9,9,2) $m=test24(7,8,8,8,2) $m=test24(7,8,8,9,1) $m=test24(7,8,9,9,2) $m=test24(7,9,9,9,2) $m=test24(8,8,8,8,2) $m=test24(8,8,8,9,2) $m=test24(8,8,9,9,2) $m=test24(8,9,9,9,2) $m=test24(9,9,9,9,2)
function test24($i1,$i2,$i3,$i4,$behaviour) DIM $out, $str, $found $str = 'In => '+$i1+', '+$i2+', '+$i3+', '+$i4+'; Out => ' $out=Game24($i1,$i2,$i3,$i4) $out=trim($out) $str = $str + $out if $out <> "" $found=1 else $found=0 endif if ( ($behaviour=1) and ($found=1) ) or ( ($behaviour=2) and ($found=0) ) $str = $str + " => Correct!!" else $str = $str + " => WRONG!!" endif ? $str endfunction
_________________________
Jack
|
Top
|
|
|
|
#70143 - 2002-09-25 02:52 AM
Re: KixGolf Results/Code
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
I can't say it was great logic. I started with the what made sense: a lone pair, double pair for all 5's, a(bcd), and (abc)d.
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 369 anonymous users online.
|
|
|