Sweety

Practice makes perfect

导航

2014年7月21日

摘要: http://poj.org/problem?id=1363 Description There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was ... 阅读全文

posted @ 2014-07-21 16:24 蓝空 阅读(116) 评论(0) 推荐(0) 编辑

摘要: In a serious attempt to downsize (reduce) the dole queue, The New National Green Labour Rhinoceros Party has decided on the following strategy. Ever... 阅读全文

posted @ 2014-07-21 12:02 蓝空 阅读(189) 评论(0) 推荐(0) 编辑

2014年7月20日

摘要: 详细KMP见http://blog.csdn.net/u014665013/article/details/37995355 Description The French author Georges Perec (1936–1982) once wrote a book, La ... 阅读全文

posted @ 2014-07-20 19:53 蓝空 阅读(311) 评论(0) 推荐(0) 编辑

摘要: 在介绍KMP算法之前,先介绍一下BF算法。 一.BF算法 BF算法是普通的模式匹配算法,BF算法的思想就是将目标串S的第一个字符与模式串P的第一个字符进行匹配,若相等,则继续比较S的第二个字符和P的第二个字符;若不相等,则比较S的第二个字符和P的第一个字符,依次比较下去,直到得出最后的匹... 阅读全文

posted @ 2014-07-20 19:09 蓝空 阅读(215) 评论(0) 推荐(0) 编辑

摘要: (一)string定义: a) string s;//生成一个空字符串s stringa="eholldfs";a="dfgdfg";cin>>a; b) string s(str) //拷贝构造函数生成str的复制品 c) string s(str,n) //将字符串str内"始于位置n"的... 阅读全文

posted @ 2014-07-20 17:40 蓝空 阅读(297) 评论(0) 推荐(0) 编辑

摘要: Description The Genographic Project is a research partnership between IBM and The National Geographic Society that is analyzing DNA from hundreds ... 阅读全文

posted @ 2014-07-20 17:28 蓝空 阅读(156) 评论(0) 推荐(0) 编辑

摘要: Description Consider polynomials whose coefficients are 0 and 1. Addition of two polynomials is achieved by 'adding' the coefficients for the c... 阅读全文

posted @ 2014-07-20 09:49 蓝空 阅读(212) 评论(0) 推荐(0) 编辑

2014年7月18日

摘要: Description The Antique Comedians of Malidinesia prefer comedies to tragedies. Unfortunately, most of the ancient plays are tragedies. Therefore... 阅读全文

posted @ 2014-07-18 14:38 蓝空 阅读(158) 评论(0) 推荐(0) 编辑

摘要: Description A calendar is a system for measuring time, from hours and minutes, to months and days, and finally to years and centuries. The terms o... 阅读全文

posted @ 2014-07-18 08:43 蓝空 阅读(297) 评论(0) 推荐(0) 编辑

2014年7月17日

摘要: Description A fractal is an object or quantity that displays self-similarity, in a somewhat technical sense, on all scales. The object need not ex... 阅读全文

posted @ 2014-07-17 17:34 蓝空 阅读(182) 评论(0) 推荐(0) 编辑