算法之路
文章平均质量分 90
Miner_Sty
-_-||
展开
-
[POJ]1207 The 3n + 1 problem
[POJ]1207 The 3n + 1 problem问题 Description Problems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem y原创 2015-11-26 15:12:09 · 514 阅读 · 0 评论 -
[POJ]2533 Longest Ordered Subsequence
[POJ]2533 Longest Ordered Subsequence问题 Description A numeric sequence of ai is ordered if a1 < a2 < … < aN. Let the subsequence of the given numeric sequence (a1, a2, …, aN) be any sequenc原创 2015-12-02 11:06:48 · 452 阅读 · 0 评论 -
[POJ]1328 Radar Installation
[POJ]1328 Radar Installation问题 Description Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the原创 2015-12-02 09:50:08 · 465 阅读 · 0 评论 -
[POJ]1017 Packets
[POJ]1017 Packets问题 Description A factory produces products packed in square packets of the same height h and of the sizes 1*1, 2*2, 3*3, 4*4, 5*5, 6*6. These products are always delivered原创 2015-11-30 19:58:59 · 739 阅读 · 1 评论 -
[POJ]1664 放苹果
[POJ]1664 放苹果问题 Description 把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。 Input 第一行是测试数据的数目t(0 <= t <= 20)。以下每行均包含二个整数M和N,以空格分开。1<=M,N<=10。 O原创 2015-11-30 19:35:33 · 460 阅读 · 0 评论 -
[POJ]1458 Common Subsequence
[POJ]1458 Common Subsequ Description A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = < x1, x2, …, xm > another sequence原创 2015-11-30 08:57:13 · 390 阅读 · 0 评论 -
[POJ]1258 Agri-Net
[POJ]1258 Agri-Net问题 Description Farmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the area. He needs your help原创 2015-11-28 21:41:50 · 421 阅读 · 0 评论 -
[POJ]2299 Ultra-QuickSort
[POJ]2299 Ultra-QuickSort问题 Description In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjace原创 2015-11-27 21:43:07 · 509 阅读 · 0 评论 -
[POJ]3264 Balanced Lineup
[POJ]3264 Balanced Lineup问题 Description For the daily milking, Farmer John’s N cows (1 ≤ N ≤ 50,000) always line up in the same order. One day Farmer John decides to organize a game of Ulti原创 2015-11-27 20:09:43 · 365 阅读 · 0 评论 -
[POJ]1844 Sum
[POJ]1844 Sum问题 Description Consider the natural numbers from 1 to N. By associating to each number a sign (+ or -) and calculating the value of this expression we obtain a sum S. The probl原创 2015-12-23 11:37:36 · 514 阅读 · 0 评论