上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 34 下一页
摘要: POJ 3261 Description Farmer John has noticed that the quality of milk given by his cows varies from day to day. On further investigation, he discovere 阅读全文
posted @ 2016-05-08 20:14 茶飘香~ 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Description Given a string, we need to find the total number of its distinct substrings. Input T- number of test cases. T<=20; Each test case consists 阅读全文
posted @ 2016-05-08 19:50 茶飘香~ 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 51Nod 在一个排列中,如果一对数的前后位置与大小顺序相反,即前面的数大于后面的数,那么它们就称为一个逆序。一个排列中逆序的总数就称为这个排列的逆序数。 如2 4 3 1中,2 1,4 3,4 1,3 1是逆序,逆序数是4。给出一个整数序列,求该序列的逆序数。 在一个排列中,如果一对数的前后位置与 阅读全文
posted @ 2016-05-06 20:09 茶飘香~ 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Description Today is Christmas day. There are n single boys standing in a line. They are numbered form 1 to n from left to right. The i-th single boy 阅读全文
posted @ 2016-05-03 17:49 茶飘香~ 阅读(174) 评论(0) 推荐(0) 编辑
摘要: HDU 3613 Description After an uphill battle, General Li won a great victory. Now the head of state decide to reward him with honor and treasures for h 阅读全文
posted @ 2016-04-24 12:03 茶飘香~ 阅读(213) 评论(0) 推荐(0) 编辑
摘要: HDU 3068 Description 给出一个只由小写英文字符a,b,c...y,z组成的字符串S,求S中最长回文串的长度. 回文就是正反读都是一样的字符串,如aba, abba等 HDU 3068 Description 给出一个只由小写英文字符a,b,c...y,z组成的字符串S,求S中最长 阅读全文
posted @ 2016-04-24 11:42 茶飘香~ 阅读(177) 评论(0) 推荐(0) 编辑
摘要: HDU 5371 Description Hotaru Ichijou recently is addicated to math problems. Now she is playing with N-sequence. Let's define N-sequence, which is comp 阅读全文
posted @ 2016-04-19 20:00 茶飘香~ 阅读(292) 评论(0) 推荐(0) 编辑
摘要: HDU 3294 Problem Description One day, sailormoon girls are so delighted that they intend to research about palindromic strings. Operation contains two 阅读全文
posted @ 2016-04-17 17:56 茶飘香~ 阅读(165) 评论(0) 推荐(0) 编辑
摘要: HDU 4513 Problem Description 吉哥又想出了一个新的完美队形游戏! 假设有n个人按顺序站在他的面前,他们的身高分别是h[1], h[2] ... h[n],吉哥希望从中挑出一些人,让这些人形成一个新的队形,新的队形若满足以下三点要求,则就是新的完美队形: 1、挑出的人保持原 阅读全文
posted @ 2016-04-17 17:04 茶飘香~ 阅读(180) 评论(0) 推荐(0) 编辑
摘要: POJ 3974 Description Andy the smart computer science student was attending an algorithms class when the professor asked the students a simple question 阅读全文
posted @ 2016-04-17 11:55 茶飘香~ 阅读(210) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 34 下一页