摘要: POJ1948 Triangular Pastures 1 #include <iostream> 2 #include <cmath> 3 using namespace std; 4 const int maxn = 805; 5 bool dp[maxn][maxn]; 6 int a[max 阅读全文
posted @ 2019-10-30 16:30 麻辣猪仔 阅读(104) 评论(0) 推荐(0)
摘要: 最短Hamilton路径 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn = 21; 4 int dp[1<<maxn][maxn]; 5 int maps[maxn][maxn]; 6 int main() { 7 阅读全文
posted @ 2019-10-30 12:11 麻辣猪仔 阅读(105) 评论(0) 推荐(0)