复旦机试之汉诺塔问题

经典的汉诺塔问题,咱们在此基础上再在最后的输出结果中输出移动的是哪一片铜片。ios #include <iostream> using namespace std; long long x; long long y; void move(char a,int n,char c) { x++; if (x > y-100) { cout << a <<
相关文章
相关标签/搜索