自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 hdu 1003 Max Sum

Problem Description Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in this sequence is 6 + (-1) + 5 +

2014-08-23 11:06:40 310

原创 hdu 1002 A + B Problem II

Problem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.   Input The first line of the input contains an integer T(1<=T<

2014-08-20 12:06:02 310

原创 hdu 1228 A + B map 试用

Problem Description 读入两个小于100的正整数A和B,计算A+B. 需要注意的是:A和B的每一位数字由对应的英文单词给出.   Input 测试输入包含若干测试用例,每个测试用例占一行,格式为"A + B =",相邻两字符串有一个空格间隔.当A和B同时为0时输入结束,相应的结果不要输出.   Output 对每个测试用例输出1行,即A+B的值

2014-08-19 10:08:09 348

原创 dijkstra,bellman-ford,floyd,HDU—1874 畅通工程续

Problem Description 某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多。这让行人很困扰。 现在,已知起点和终点,请你计算出要从起点到终点,最短需要行走多少距离。   Input 本题目包含多组数据,请处理到文件结束。 每组数据第一行包

2014-08-11 15:52:26 499

原创 hdu 2544——最短路 dijkstra算法

点击打开链接hdu 2544 最短路 dijstra

2014-08-10 09:36:21 437

原创 hdu 1680——Choose the best route dijkstra算法

点击打开链接hdu 1680

2014-08-10 09:23:25 441

原创 hdu 1690——Bus System floyd 算法

题意:车站都在一条直线上用X坐标轴表示,

2014-08-10 09:09:36 455

原创 hdu 1879——继续畅通工程 最小生成树

hdu 1879 点击打开链接

2014-08-05 16:51:14 389

原创 最小生成树 ———prim算法 poj 1258

prim算法:任意选择一点 用pos表示 用low数组保存

2014-08-05 11:03:49 417

原创 最小生成树——— 克鲁斯卡尔 hdu 1162 Eddy's picture

Problem Description Eddy begins to like painting pictures recently ,he is sure of himself to become a painter.Every day Eddy draws pictures in his small room, and he usually puts out his newest pictu

2014-08-05 10:21:37 571

原创 Uva 10465 — Homer Simpson

Homer Simpson, a very smart guy, likes eating Krusty-burgers. It takes Homer m minutes to eat a Krusty- burger. However, there�s a new type of burger in Apu�s Kwik-e-Mart. Homer likes those too. It ta

2014-08-04 10:45:42 704

原创 UVa 10130—SuperSale

SuperSale There is a SuperSale in a SuperHiperMarket. Every person can take only one object of each kind, i.e. one TV, one carrot, but for extra low price. We are going with a whole family to that Su

2014-08-04 09:46:20 402

原创 Uva 10405—Longest Common Subsequence

Problem C: Longest Common Subsequence Sequence 1:                 Sequence 2:                 Given two sequences of characters, print the length of the longest common subsequence of both seq

2014-08-01 18:21:41 452

原创 UVa 10192—Vacation

The Problem You are planning to take some rest and to go out on vacation, but you really don't know which cities you should visit. So, you ask your parents for help. Your mother says "My son, you MUS

2014-08-01 18:21:25 349

空空如也

空空如也

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

TA关注的人

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