Beyond the Sora


poj1007——DNA Sorting

Description One measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For i...

2015-08-24 15:53:18

阅读数 1219

评论数 0


Description There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunat...

2015-08-22 19:09:07

阅读数 907

评论数 0

KMP练习——KMP模式匹配 一(串)

Description 求子串的next值,用next数组存放,全部输出 Input 输入一个字符串 Output 输出所有next值 Sample Input abaabcac Sample Output 0 1 1 2 2 3 1 2   代码...

2015-08-18 11:29:44

阅读数 942

评论数 0



2015-08-16 22:27:26

阅读数 730

评论数 0

hdu——Red and Black

Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. Fro...

2015-08-15 18:26:00

阅读数 742

评论数 0

poj3006——Dirichlet's Theorem on Arithmetic Progressions

Description If a and d are relatively prime positive integers, the arithmetic sequence beginning with a and increasing by d, i.e., a, a + d, a + 2d...

2015-08-14 16:23:28

阅读数 682

评论数 0

取消 删除