摘要: #include<iostream> #include<map> #include<string> #include<queue> #include<cstring> using namespace std; const int N = 400000; #define state pair<int, 阅读全文
posted @ 2020-09-15 19:49 yys_c 阅读(115) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<map> #include<string> #include<queue> #include<cstring> using namespace std; const int N = 400000; #define state pair<int, 阅读全文
posted @ 2020-09-15 19:25 yys_c 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 问题描述 有一长度为N(1<=N<=10)的地板,给定两种不同瓷砖:一种长度为1,另一种长度为2,数目不限。要将这个长度为N的地板铺满,一共有多少种不同的铺法? 例如,长度为4的地面一共有如下5种铺法: 4=1+1+1+1 4=2+1+1 4=1+2+1 4=1+1+2 4=2+2 编程用递归的方法 阅读全文
posted @ 2020-09-15 11:13 yys_c 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 问题描述 如下图所示,3 x 3 的格子中填写了一些整数。 + +--+ |10 1|52| +--***--+ |20|30 1| *******--+ | 1| 2| 3| +--+--+--+ 我们沿着图中的星号线剪开,得到两个部分,每个部分的数字和都是60。 我们沿着图中的星号线剪开,得到两 阅读全文
posted @ 2020-09-15 10:38 yys_c 阅读(133) 评论(0) 推荐(0) 编辑