- 博客(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 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关注的人