摘要:
题解:递归方法,在上一题的题解上面加一个限定就行了 点击查看代码 #include<iostream> #include<algorithm> #include<cstring> using namespace std; typedef pair<int,int> pll; typedef long 阅读全文
posted @ 2023-02-16 18:41
xxj112
阅读(48)
评论(0)
推荐(0)
摘要:
题解:递归,加数组 点击查看代码 #include<iostream> #include<algorithm> #include<cstring> using namespace std; const int N=1e5+7; int n; int a[N]; void dfs(int x,int 阅读全文
posted @ 2023-02-16 17:07
xxj112
阅读(15)
评论(0)
推荐(0)
摘要:
算法:动态规划位操作压缩 题解:e[i][j] i表示路线 ,j表示终点 ,初始化e[1][0]=0,表示从0点出发。 例如:i=7,n=4,二进制为 0111 表示经过 点 0 1 2 。 点击查看代码 #include<iostream> #include<algorithm> #include 阅读全文
posted @ 2023-02-16 16:56
xxj112
阅读(11)
评论(0)
推荐(0)