llllmz

导航

2024年3月2日

4147:汉诺塔问题(Tower of Hanoi)

摘要: #include<stdio.h> void move(int tail,char now,char tool,char end,int n){//以nown为低,共 n个 if(n <=0) return; move(tail-1,now,end,tool,n-1); printf("%d:%c- 阅读全文

posted @ 2024-03-02 19:53 神奇的萝卜丝 阅读(32) 评论(0) 推荐(0)