主题:震惊世界的消息!!!!
007bond
[专家分:540] 发布于 2007-10-28 15:43:00
我已遍出可解n针汉诺塔(包括已认为作出来就是世界末日的64针汉诺塔)的程序
input n
if n=3 then
?1;"-";3:?1;"-";2:?3;"-",2:?1,"-",3
?2,"-",1:?2,"-",3:?1,"-",3
end if
for i=1 to n-2 do ?1,"-",i+1
next i
?2,"-"3
?1,"-"2
?1,"-",n
for i=4 to n-1 do ?i,"-",n
next i
?2,"-",n
?3,"-",2
?3,"-",n
?2,"-",n
end.
回复列表 (共9个回复)
沙发
ka52ka52 [专家分:20] 发布于 2007-10-29 15:08:00
什么嘛,早做过了
板凳
ka52ka52 [专家分:20] 发布于 2007-10-29 15:09:00
for i=1 to n-2 do ?1,"-",i+1 !!!!
3 楼
ahei [专家分:150] 发布于 2007-11-01 09:24:00
良心大大的坏 我早就知道怎么做就是不去做 因为怕世界末日 现在好了 好端端的一个世界 让你给毁了
4 楼
007bond [专家分:540] 发布于 2007-11-07 17:09:00
我也在这几天倒霉透顶
5 楼
小小DAVID [专家分:300] 发布于 2010-01-31 20:42:00
垃圾!一番就一个
6 楼
lucyxu [专家分:0] 发布于 2010-03-29 09:55:00
Dear friend:
we are shoe wholesaler ,and you can go to view my site:shoessaleb2c.com
we have many top quality shoes in stock .mainly wholesale Nike Air Jordan sneakers,air Force one,AF1
Obama, Nike Dunk Sb high,Nike dunk sb low,Nike shox, Such as Adidas , hot AJF LS.6 rings, Jordan ,
Air Max (87 88 89 90 91 95 97 180 2003 2006 360 2009 2010 ) TN ltd, Shox TL/TL2 /NZ/R4/r5 , Rift ,
Timberland , Reebok , and hot brand shoes Nike Blaze CREATIVE RECREATION ,SUPRA SHOES ,ATO SHOES
,NIKE AIR YEEZY Alife SHMACK SHOES UGG boots etc .and I can give you best price,and a pair is $30-$38
with the shipping .And order more,give you a discount.we also provide many brand clothes.Jeans, such
as bbc hoodies , bape hoodies , evisu coat , red monkey jean , bape jean , bbc jean , evisu jean ,
etc . And any problem ,we can negotiate it.Trust we will have a good business in the future,and you
will love to do the business with me,and then we will benefit. If you are interested in my
products,please visit my website: www.shoessaleb2c.com ,and contact me in the E-mail:
shoessaleb2c@hotmail.com or shoessaleb2c@yahoo.cn
Thanks and best regards
7 楼
神秘-赛尔 [专家分:170] 发布于 2010-07-27 21:14:00
啥?
8 楼
zgzzsn [专家分:0] 发布于 2010-10-06 21:47:00
把楼主的整理了一下,可以运行:
input n
if n=3 then
PRINT 1;"-";3
PRINT 1;"-";2
PRINT 3;"-",2
PRINT 1,"-",3
PRINT 2,"-",1
PRINT 2,"-",3
PRINT 1,"-",3
end if
for i=1 to n-2
PRINT 1,"-",i+1
next i
PRINT 2,"-",3
PRINT 1,"-",2
PRINT 1,"-",n
for i=4 to n-1
PRINT i,"-",n
next i
PRINT 2,"-",n
PRINT 3,"-",2
PRINT 3,"-",n
PRINT 2,"-",n
end
9 楼
huangyb731 [专家分:630] 发布于 2010-10-26 21:50:00
什么狗屁程序!?[em61][em70][em29][em27][em26]
我来回复