自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 资源 (4)
  • 收藏
  • 关注

原创 hdu1016 (素数环)(深度优先搜索)另附:http://acm.nyist.net/JudgeOnline/problem.php?pid=488

链接:http://acm.hdu.edu.cn/showproblem.php?pid=1016           http://acm.nyist.net/JudgeOnline/problem.php?pid=488(1的时候形成自环) 源代码: #include #include #include using namespace std; #define N

2012-08-15 20:22:55 1801

原创 poj2751(双机调度)

http://poj.org/problem?id=2751 源代码: #include #include #include #include using namespace std; #define N 10001 struct node {  int flag,t,id;  bool operator  {   return t  } }; int a[N];

2012-08-14 20:20:49 421

原创 poj3628(背包变形)

http://poj.org/problem?id=3628 源代码: #include #include #include using namespace std; const int INF =20000001; #define N 21 int height[N]; int dp[INF]; void dp1(int n,int sum,int height[]); i

2012-08-14 20:18:52 266

原创 poj3624(背包问题)

http://poj.org/problem?id=3624 源代码: #include #include #include using namespace std; #define N 3410 int m[N][N]; int w[N]; int v[N]; int max(int a,int b); int min(int a,int b);

2012-08-14 20:16:30 332

原创 hdu1875(MST)(prim)

链接:http://acm.hdu.edu.cn/showproblem.php?pid=1875 源代码: #include #include #include #include using namespace std; #define INF 999999 #define N 110 double edge[N][N]; double dist[N]; int visit

2012-08-14 19:40:25 256

原创 hdu1102(MST)

链接:http://acm.hdu.edu.cn/showproblem.php?pid=1102 源代码: //之前的总是stack_overflow,无语啊 #include #include #include #include using namespace std; #define INF 9999999 int village[101]; int ed

2012-08-14 09:24:36 302

原创 hdu1257 另附:http://acm.nyist.net/JudgeOnline/problem.php?pid=214(最长上升子序列)

链接:http://acm.hdu.edu.cn/showproblem.php?pid=1257            http://acm.nyist.net/JudgeOnline/problem.php?pid=214(代码大同小异,不再赘述,但要注意时间复杂度) 源代码: #include #include #include using namespace std; #de

2012-08-12 19:56:36 422

原创 hdu1025(最长上升子序列)

链接:http://acm.hdu.edu.cn/showproblem.php?pid=1025 另附:http://acm.nyist.net/JudgeOnline/problem.php?pid=17 源代码: #include #include #include using namespace std; #define N 500005 int b

2012-08-12 19:54:33 406

原创 hdu1159 另附:http://acm.nyist.net/JudgeOnline/problem.php?pid=36(最长公共子序列)

题目链接: http://acm.nyist.net/JudgeOnline/problem.php?pid=36 http://acm.hdu.edu.cn/showproblem.php?pid=1159 源代码: #include #include #include #include using namespace std; #define N 500 char

2012-08-12 10:11:08 795

原创 hdu1233(prim求最小生成树)

链接:http://acm.hdu.edu.cn/showproblem.php?pid=1233 源代码: #include #include #include using namespace std; #define N 100 #define max 99999 int edge[N][N]; int dist[N]; int visited[N]; int main(

2012-08-12 09:57:32 348

原创 hdu1879(kruskal求最小生成树)

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1879 源代码: #include #include #include #include using namespace std; typedef struct Edge {  int start,end,weight,flag; }edge; edge e[5000]; int

2012-08-12 09:51:25 278

原创 hdu1863(kruskal求最小生成树)

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1863 源代码: #include #include #include #include using namespace std; #define N 100 typedef struct Edge { int c1,c2,value; }edge; edge e

2012-08-12 09:49:32 250

原创 zju3033(bellman_ford)

链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3033 源代码: #include #include #include #define N 310 #define inf ( (long long)(1) ) #define LL long long using namespace std;

2012-08-11 23:21:17 188

原创 hdu2191(多重背包)

题目链接http://acm.hdu.edu.cn/showproblem.php?pid=2191 源代码: #include #include #include using namespace std; #define N 101 int w[N]; int v[N]; int multiple_pack[N]; int a[N]; int main()

2012-08-11 21:26:57 222

原创 hdu1114,poj1384(完全背包)另附:http://acm.nyist.net/JudgeOnline/problem.php?pid=311

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1114         http://poj.org/problem?id=1384 http://acm.nyist.net/JudgeOnline/problem.php?pid=311(代码雷同,不再赘述) #include #include #include using namespa

2012-08-11 20:26:26 457

移动开发精彩ppt讲解

里面有关于移动开发方面的精彩的ppt的讲解,可以学到很多的东西

2013-07-19

计算机网络中的停等协议的实现

有计算机网络中简单停等协议实现的代码供初学者学习

2013-07-19

c++实用编程技术讲解

该书中基于c语言基础,多方面,多角度的讲解了c++中应该有的编程思想,详细具体,生动,定有帮助

2013-03-02

计算机学习资料

里面有关于c++,c语言中输入输出相关的编程注意事项,可以使你在日后的编程中减少出错,绝对有 帮助

2013-03-01

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除