上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 52 下一页
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1337 1 #include 2 #include 3 #define maxn 200 4 using namespace std; 5 int main() 6 { 7 int t; 8 i... 阅读全文
posted @ 2014-07-22 09:00 null1019 阅读(90) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1520 1 #include 2 #include 3 #include 4 #include 5 #define maxn 7000 6 using namespace std; 7 8 int dp[... 阅读全文
posted @ 2014-07-22 08:41 null1019 阅读(108) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1331 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int dp[30][30][30]; 7 8 int dfs(int a,... 阅读全文
posted @ 2014-07-21 20:29 null1019 阅读(119) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1208 1 #include 2 #include 3 #include 4 #define maxn 100 5 #define ll __int64 6 using namespace std; 7 8... 阅读全文
posted @ 2014-07-21 20:03 null1019 阅读(122) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1159 1 #include 2 #include 3 #include 4 #define maxn 1000 5 using namespace std; 6 7 int dp[maxn][maxn];... 阅读全文
posted @ 2014-07-21 18:58 null1019 阅读(108) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1129 1 import java.util.*; 2 import java.math.*; 3 public class Main { 4 public static boolean flag=false; 5 public ... 阅读全文
posted @ 2014-07-08 21:24 null1019 阅读(190) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=2531 1 import java.util.*; 2 import java.math.*; 3 public class Main { 4 public static int ans=0; 5 public static vo... 阅读全文
posted @ 2014-07-08 17:09 null1019 阅读(153) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=3140这道题数据大,需要用long long,dfs枚举删除的边求最小就行。 1 #include 2 #include 3 #include 4 #include 5 #define ll long long 6 #define max... 阅读全文
posted @ 2014-07-04 15:06 null1019 阅读(157) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1054 1 #include 2 #include 3 #include 4 #define maxn 5001 5 using namespace std; 6 7 int r,c,n,x2,y2; 8 bool vis[maxn][m... 阅读全文
posted @ 2014-07-04 11:34 null1019 阅读(143) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=3280 1 #include 2 #include 3 #include 4 #define maxn 2000010 5 using namespace std; 6 7 char str[maxn],ch; 8 int a[maxn]... 阅读全文
posted @ 2014-06-22 11:05 null1019 阅读(115) 评论(0) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 52 下一页