My Carelessness

Back to your page!


Or leave your comments here.

RegendLa

导航

2015年5月11日 #

关于简单汉诺塔

摘要: 问:求n层汉诺塔至少需要多少步完成。 #includeint f(int n);int main(){ int n; scanf("%d",&n); printf("%d层汉诺塔至少需要%d步\n",n,f(n)); return 0;}int f(int n){ if(n==1) retu... 阅读全文

posted @ 2015-05-11 17:36 最爱七 阅读(208) 评论(0) 推荐(0) 编辑




Thanks for your coming!
If what you read helps,I would appreciate!