自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(28)
  • 资源 (1)
  • 收藏
  • 关注

原创 HDU3371 Connect the Cities

思考:用G++  TLE, 用C++ AC。#include #include #include #include using namespace std;const int maxn = 510;int gn, gm;//Accepted 3371 906MS 1088K 1336 B C++ //Accepted 3371 875MS 1088K 1471 B C++ s

2014-03-23 13:37:37 793

原创 POJ1988

POJ1988

2014-03-23 09:14:57 1188

转载 POJ 1182 食物链

思考: 首先我感觉这道题目不容易的地方就是表示三种物种的相对关系,以及关系之间的相互转化,更新。看了一个网友分享的思路,感觉很不错。#include #include #include #include using namespace std;const int maxn = 50010;//动物个数的最大值///指明父节点与自己的关系,0同类,1被吃,2吃父const int

2014-03-21 16:12:20 568

原创 HDU 3926 Hand in Hand

hdu3926

2014-03-20 21:21:15 780

原创 hdu 1875 畅通工程再续

HDU1875

2014-03-20 09:33:03 843

原创 HD1874 畅通工程续

spfa最短路径问题。

2014-03-20 08:26:38 1062

转载 2014网易运营工程师笔试题

网易运维工程(邮件运维) 日期:2013-09-23第一部分:计算机科学基础1,(2分)对于多关键字而言,那种文件组织方便而又高效()A、顺序文件 B、倒排文件 C、散列文件 D、B+树索引文件2,(2分)以下哪些算法可用于遍历网络图()A、广度优先搜索  B、深度优先搜索  C、线性规划策略  D、决策树3,(2分)我们使用一个6元组来表示6个节点的无向图的顶点数

2014-03-19 17:26:51 1931

原创 POJ 2492 A Bug's Life

POJ2492

2014-03-19 15:55:42 775

原创 hdu1232 畅通工程

#include #include #include #include using namespace std;const int maxn = 1000;int f[maxn+10];int getFather(int x) { if(x == f[x]) return x; else return f[x] = getFather(f[x]);}int gn, gm

2014-03-19 08:30:37 853

原创 POJ2524 Ubiquitous Religions

POJ2524

2014-03-19 08:28:42 904

原创 POJ2236 Wireless Network

poj2236

2014-03-18 17:08:15 888

原创 POJ1611 The Suspects

set

2014-03-18 15:42:55 834

原创 hdu1272 小希的迷宫

BFS

2014-03-18 11:10:48 829

原创 POJ1038 Is It A Tree?

2014-03-17 20:23:03 797

原创 HDU1213 How Many Tables

hdu1213

2014-03-17 11:21:57 834

原创 POJ1703 Find them, Catch them

POJ1703

2014-03-17 10:57:40 934

原创 POJ1088 滑雪

DP

2014-03-14 21:27:01 703

转载 树的最大独立集 (算法经典入门)

思考:看过算法经典入门再看看网上的这个程序就是一种享受啊!禁不住转载,我还在树上的动态规划入门阶段。。。加油!#include #include #include #include using namespace std;const int MAXN=100;vector G[MAXN]; //无根树int l[MAXN]; //结点层次int p[MAXN]; //根树i

2014-03-13 20:52:36 3089

转载 url

推荐一篇在 eclipse 中 java web 链接数据库的文章。http://www.cnblogs.com/fnng/archive/2011/07/18/2110023.html

2014-03-12 12:39:07 653

原创 poj2141 Message Decowding

此题目练习编码的,C++用gets()函数会有警告哦。#include #include #include #include const int maxn = 90;char str[30];char read[maxn];void work(){ int len = strlen(read); for(int i = 0; i < len; i++) { if(re

2014-03-11 15:56:43 802

原创 POJ2260 Error Correction

矩阵

2014-03-11 15:15:14 723

原创 POJ1306 Combinations

组合数

2014-03-11 11:57:02 922

原创 POJ2249 Binomial Showdown

组合数

2014-03-11 11:51:44 875

原创 POJ1852 Ant

趣味。

2014-03-11 11:03:55 828

原创 POJ2661 Factstone Benchmark

基础题目

2014-03-11 10:21:42 993

原创 Open Credit System UVa 11078

递推

2014-03-10 18:46:44 800

原创 hdu1969 Pie

二分

2014-03-10 17:39:31 970

原创 3902 - Network (LA)

数据结构,贪心

2014-03-10 17:28:25 37913

程序员面试笔试宝典

面试笔试必看,讲解数据结构和算法,怎么写简历,面试技巧等等

2014-02-21

空空如也

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

TA关注的人

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