六個人過橋
只呈現 Min. Cost 過程訊息, 隨機產生六個人的過橋時間
# perl math03.pl 6 4 People Cost List: 1:(4) 2:(16) 3:(18) 4:(18) 5:(9) 6:(1) Guess Min. Cost:56 Finish.. No.51 Cost:56 Steps:000000 (100001) 000001 (010011) 010010 (110011) 010011 (011111) 011110 (111111) Finish.. No.52 Cost:56 Steps:000000 (100001) 000001 (010011) 010010 (110011) 110010 (111110) 011110 (111111) Finish.. No.53 Cost:56 Steps:000000 (100001) 000001 (001101) 001100 (101101) 001101 (011111) 011110 (111111) Finish.. No.54 Cost:56 Steps:000000 (100001) 000001 (001101) 001100 (101101) 101100 (111110) 011110 (111111) Finish.. No.55 Cost:56 Steps:000000 (100001) 100000 (110010) 010010 (110011) 010011 (011111) 011110 (111111) Finish.. No.56 Cost:56 Steps:000000 (100001) 100000 (110010) 010010 (110011) 110010 (111110) 011110 (111111) Finish.. No.57 Cost:56 Steps:000000 (100001) 100000 (101100) 001100 (101101) 001101 (011111) 011110 (111111) Finish.. No.58 Cost:56 Steps:000000 (100001) 100000 (101100) 001100 (101101) 101100 (111110) 011110 (111111) Total Time:0 sec Min. Cost :56