Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
105066 | 黄戈 | 汉诺塔 | C++ | 通过 | 100 | 0 MS | 236 KB | 762 | 2023-10-05 09:44:22 |
#include<bits/stdc++.h> using namespace std; int main(){ cout<<"A->C"<<endl; cout<<"A->B"<<endl; cout<<"C->B"<<endl; cout<<"A->C"<<endl; cout<<"B->A"<<endl; cout<<"B->C"<<endl; cout<<"A->C"<<endl; cout<<"A->B"<<endl; cout<<"C->B"<<endl; cout<<"C->A"<<endl; cout<<"B->A"<<endl; cout<<"C->B"<<endl; cout<<"A->C"<<endl; cout<<"A->B"<<endl; cout<<"C->B"<<endl; cout<<"A->C"<<endl; cout<<"B->A"<<endl; cout<<"B->C"<<endl; cout<<"A->C"<<endl; cout<<"B->A"<<endl; cout<<"C->B"<<endl; cout<<"C->A"<<endl; cout<<"B->A"<<endl; cout<<"B->C"<<endl; cout<<"A->C"<<endl; cout<<"A->B"<<endl; cout<<"C->B"<<endl; cout<<"A->C"<<endl; cout<<"B->A"<<endl; cout<<"B->C"<<endl; cout<<"A->C"<<endl; return 0; }