
算法
文章平均质量分 86
微笑的蒲公英
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
POJ 2184 Cow Exhibition
Cow Exhibition Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 9573 Accepted: 3698 Description "Fat and docile, big and dumb, they look so stupid, they are原创 2015-02-05 10:39:00 · 353 阅读 · 0 评论 -
Squares
Squares Time Limit: 3500MS Memory Limit: 65536K Total Submissions: 16784 Accepted: 6389 Description A square is a 4-sided polygon whose sides have equal length and ad转载 2015-01-23 20:26:08 · 327 阅读 · 0 评论 -
A Knight's Journey
A Knight's Journey Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 32470 Accepted: 11060 Description Background The knight is getting bored of seeing the转载 2015-01-23 19:46:49 · 346 阅读 · 0 评论 -
Snowflake Snow Snowflakes寻找相似雪花
Snowflake Snow Snowflakes Time Limit: 4000MS Memory Limit: 65536K Total Submissions: 32243 Accepted: 8488 Description You may have heard that no two snowflakes are al转载 2015-01-21 21:36:32 · 409 阅读 · 0 评论 -
SDUT2778 小明的花费预算
小明的花费预算 Time Limit: 1000MS Memory limit: 65536K 题目描述 小明终于找到一份工作了,但是老板是个比较奇怪的人,他并不是按照每月每月的这样发工资,他觉得你想什么时候来取都可以,取的是前边连续几个月中没有取的工资,而小明恰好是一个花钱比较大手大脚的人,所以他希望每次取得钱正好够接下来的n个月的花费。 所以让你把这n个原创 2015-01-21 19:39:58 · 461 阅读 · 0 评论 -
HDU 1754 I Hate It
I Hate It Time Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 38194 Accepted Submission(s): 15096 Problem Description 很多学校流行一种比较的习惯。原创 2014-08-08 21:07:24 · 254 阅读 · 0 评论 -
POJ 1061 青蛙的约会
青蛙的约会 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 89902 Accepted: 16183 Description 两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面原创 2014-08-07 16:32:23 · 336 阅读 · 0 评论 -
HDU 2736 Surprising Strings
Surprising Strings Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 349 Accepted Submission(s): 245 Problem Description The D-pai原创 2014-08-06 21:19:40 · 348 阅读 · 0 评论 -
POJ 2418 Hardwood Species
Hardwood Species Time Limit: 10000MS Memory Limit: 65536K Total Submissions: 18467 Accepted: 7320 Description Hardwoods are the botanical group of trees that have bro原创 2014-08-06 20:55:44 · 333 阅读 · 0 评论 -
HDU 2035 人见人爱A^B
人见人爱A^B Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 22182 Accepted Submission(s): 15471 Problem Description 求A^B的最后三位数表示的整数。原创 2014-08-06 20:40:02 · 358 阅读 · 0 评论 -
HDU1061 Rightmost Digit
Rightmost Digit Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 31895 Accepted Submission(s): 12218 Problem Description Given a原创 2014-08-06 20:20:12 · 349 阅读 · 0 评论 -
POJ1731 Orders
#include #include #include #include #include #include using namespace std; int main() { int n,m,k,s,i,j; int f[101][101],a[110],b[110]; while(scanf("%d%d%d%d",&n,&m,&k,&s)!=EOF)原创 2014-07-30 21:36:05 · 412 阅读 · 0 评论 -
HDU2159FATE
OrdersTime Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionThe stores manager has sorted all kinds of goods in an alphabetical order of their labels. All原创 2014-07-30 21:34:34 · 405 阅读 · 0 评论 -
HDU 1114 POJ 1384 Piggy-Bank
Piggy-BankTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionBefore ACM can do anything, a budget must be prepared and the necessary financial support原创 2014-07-30 21:29:28 · 368 阅读 · 0 评论 -
HDU2602 Bone Collector
#include #include #include #include #include #include using namespace std; int mmax(int a,int b) { return a>b?a:b; } int main() { int T,N,V; int i,j; int w[1001],v[1001],f[1001原创 2014-07-30 21:25:37 · 307 阅读 · 0 评论 -
POJ3981 字符串替换
#include #include #include #include #include #include using namespace std; int main() { char str1[1001],str2[1001]; int i; while(gets(str1)!=NULL) { int len=strlen(str1);原创 2014-07-30 21:24:33 · 377 阅读 · 0 评论 -
简单字符串排序
A - 简单字符串排序 Time Limit:5000MS Memory Limit:100000KB 64bit IO Format:%lld & %llu Submit Status Description 从键盘输入10个学生的姓名和成绩,请按字典序排列学生的姓名并输出(姓名和成绩对应关系保持不变)。 Input 输入共原创 2014-07-30 21:10:25 · 358 阅读 · 0 评论 -
Rotating Sentences
Rotating Sentences In ``Rotating Sentences,'' you are asked to rotate a series of input sentences 90 degrees clockwise. So instead of displaying the input sentences from left to right and top to botto原创 2014-06-17 20:30:39 · 386 阅读 · 0 评论 -
POJ 1321 棋盘的问题
棋盘问题 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 24114 Accepted: 11942 Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求原创 2015-01-26 20:18:09 · 276 阅读 · 0 评论 -
POJ 3414 Pots
Pots Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 10376 Accepted: 4397 Special Judge Description You are given two pots, having the volume of A and原创 2015-01-26 20:32:13 · 291 阅读 · 0 评论 -
POJ 3087Shuffle'm Up
Shuffle'm Up Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 6247 Accepted: 2918 Description A common pastime for poker players at a poker table is to shuf原创 2015-01-26 20:42:42 · 270 阅读 · 0 评论 -
POJ 2063 Investment
Investment Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 8857 Accepted: 3039 Description John never knew he had a grand-uncle, until he received the nota原创 2015-02-05 09:59:44 · 326 阅读 · 0 评论 -
树-堆结构练习——合并果子之哈夫曼树
树-堆结构练习——合并果子之哈夫曼树 Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Submit Status Description 在一个果园里,多多已经将所有的果子打了下来,而且按果子的不同种类分成了不同的堆。多多决定把所有的果子合成一堆。 每一次合并,多多原创 2014-08-05 21:17:36 · 1136 阅读 · 1 评论 -
POJ 2392 Space Elevator
Space Elevator Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 8783 Accepted: 4173 Description The cows are going to space! They plan to achieve orbit by b原创 2015-02-05 11:31:47 · 354 阅读 · 0 评论 -
POJ 1276 Cash Machine
Cash Machine Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 28509 Accepted: 10174 Description A Bank plans to install a machine for cash withdrawal. The m原创 2015-02-05 09:41:28 · 286 阅读 · 0 评论 -
POJ 1837 Balance
Balance Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 11138 Accepted: 6917 Description Gigel has a strange "balance" and he wants to poise it. Actually,原创 2015-02-05 09:26:22 · 286 阅读 · 0 评论 -
POJ 1062 昂贵的聘礼
昂贵的聘礼 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 38272 Accepted: 11046 Description 年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答应把女儿嫁给转载 2015-02-02 19:53:59 · 303 阅读 · 0 评论 -
POJ 2240 Arbitrage
Arbitrage Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 16457 Accepted: 6926 Description Arbitrage is the use of discrepancies in currency exchange rates原创 2015-02-02 19:34:43 · 263 阅读 · 0 评论 -
POJ 1125 Stockbroker Grapevine
Stockbroker Grapevine Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 28076 Accepted: 15576 Description Stockbrokers are known to overreact to rumours. You原创 2015-02-02 19:18:59 · 276 阅读 · 0 评论 -
POJ 2253 Frogger
Frogger Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 27295 Accepted: 8871 Description Freddy Frog is sitting on a stone in the middle of a lake. Suddenl原创 2015-02-02 17:13:44 · 285 阅读 · 0 评论 -
POJ 3259 Wormholes
Wormholes Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 32555 Accepted: 11831 Description While exploring his many farms, Farmer John has discovered a nu原创 2015-01-30 21:41:13 · 265 阅读 · 0 评论 -
POJ 1860 Currency Exchange
Currency Exchange Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 21129 Accepted: 7575 Description Several currency exchange points are working in our city原创 2015-01-30 20:18:41 · 258 阅读 · 0 评论 -
POJ 2458 Highways
Highways Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 23268 Accepted: 10729 Description The island nation of Flatopia is perfectly flat. Unfortunately,原创 2015-01-29 20:36:14 · 363 阅读 · 0 评论 -
POJ 3026 Borg Maze
Borg Maze Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 9073 Accepted: 3020 Description The Borg is an immensely powerful race of enhanced humanoids from原创 2015-01-29 20:07:59 · 309 阅读 · 0 评论 -
POJ 1258 Agri-Net
Agri-Net Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 41919 Accepted: 17095 Description Farmer John has been elected mayor of his town! One of his campa原创 2015-01-29 20:28:14 · 265 阅读 · 0 评论 -
POJ 3009 Curling 2.0
Curling 2.0 Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 12556 Accepted: 5291 Description On Planet MM-21, after their Olympic games this year, curling原创 2015-01-27 20:37:43 · 292 阅读 · 0 评论 -
POJ 1442 Black Box
Black Box Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 8052 Accepted: 3297 Description Our Black Box represents a primitive database. It can save an int原创 2015-01-27 20:06:38 · 392 阅读 · 0 评论 -
POJ 3126 Prime Path
Prime Path Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 12111 Accepted: 6876 Description The ministers of the cabinet were quite upset by the message fr原创 2015-01-26 20:54:52 · 265 阅读 · 0 评论 -
How Many Points of Intersection?
Home Problems Status Contest [1312581032] Logout Flyfire专场训练 76:25:01 336:00:00 Overview Problem Status Rank Current Time: 2014-06-15 20:55:01 Contes原创 2014-06-15 21:17:03 · 407 阅读 · 0 评论