且未

博客园 首页 新随笔 联系 订阅 管理

2018年10月18日 #

摘要: 题目#include #include #include using namespace std;const int Max = 0x3f3f3f3f;int ei,ej;int steps,mi;int dir[4][2]= {{-1,0},{1,0},{0,-1}... 阅读全文
posted @ 2018-10-18 15:29 阿聊 阅读(77) 评论(0) 推荐(0)

摘要: 题目刚开始本来觉得可以用队列来写,但是 例如 ta te teta,ta的t先出队列那就不行了,所以还得用dpdp[i][j] 表示A前i个字符与B前j个字符是否能构成C前i+j个字符要使 dp[i][j] = 1 :需满足 dp[i-1][j] == 1 && C... 阅读全文
posted @ 2018-10-18 15:22 阿聊 阅读(141) 评论(0) 推荐(0)