题解
题解 P1004 【方格取数】
思路:暴力搜索 找到一条路径,把该路径归零,剩下的dp求最大值;暴搜把可能的路径全部找一遍,取最大值就是答案(数据大一点很可能超时) #include #include<stdio.h> using namespace std; int n; struct node { int …
38759
还没有收录这位用户的资料。
思路:暴力搜索 找到一条路径,把该路径归零,剩下的dp求最大值;暴搜把可能的路径全部找一遍,取最大值就是答案(数据大一点很可能超时) #include #include<stdio.h> using namespace std; int n; struct node { int …