题解列表

筛选

汉诺塔 (C语言代码)

摘要:解题思路:运用递归的方法:void  hanoi(int  n,char  a,char  b,char  c)表示将n个盘,从a柱由b柱辅助移到c柱上这里移的步骤可分为3部:1.将n-1个盘,从a柱……

Tom数 (C++代码)

摘要:解题思路:使用字符数组,逐个进行相加注意事项:注意负数参考代码:#include<iostream>#include<cstdio>#include<cstring>using namespace s……