摘要: 顺序1:枚举每个数要放入哪个位置 查看代码 //暂时不想写 顺序1:时间复杂度 顺序2:枚举每个位置要放哪个数 相关题: AcWing 1209.带分数 查看代码 #include <cstdio> #include <cstring> #include <iostream> #include <a 阅读全文
posted @ 2023-01-31 23:19 尚方咸鱼 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 做法1:在过程中输出 查看代码 /* 相关词:递归,递归搜索树,深搜 */ #include <cstdio> #include <cstring> #include <iostream> using namespace std; const int N=16; int arr[N];//0:还没考 阅读全文
posted @ 2023-01-31 13:12 尚方咸鱼 阅读(11) 评论(0) 推荐(0) 编辑