EricYang

Tech Spot of Eric

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年5月31日

摘要: Find the ClonesTime Limit:5000MSMemory Limit:65536KTotal Submissions:5391Accepted:1998DescriptionDoubleville, a small town in Texas, was attacked by the aliens. They have abducted some of the residents and taken them to the a spaceship orbiting around earth. After some (quite unpleasant) human exper 阅读全文
posted @ 2011-05-31 22:16 Eric-Yang 阅读(270) 评论(0) 推荐(0) 编辑

摘要: 文章转摘自http://www.cmykrgb123.cn/blog/string-hash-compare/常用的字符串Hash函数还有ELFHash,APHash等等,都是十分简单有效的方法。这些函数使用位运算使得每一个字符都对最后的函数值产生影响。另外还有以MD5和SHA1为代表的杂凑函数,这些函数几乎不可能找到碰撞。常用字符串哈希函数有BKDRHash,APHash,DJBHash,JSHash,RSHash,SDBMHash,PJWHash,ELFHash等等。对于以上几种哈希函数,我对其进行了一个小小的评测。 Hash函数数据1数据2数据3数据4数据1得分数据2得分数据3得分数据4 阅读全文
posted @ 2011-05-31 21:27 Eric-Yang 阅读(223) 评论(0) 推荐(0) 编辑

摘要: Recaman's SequenceTime Limit:3000MSMemory Limit:60000KTotal Submissions:15860Accepted:6666DescriptionThe Recaman's sequence is defined by a0 = 0 ; for m > 0, am= am−1− m if the rsulting amis positive and not already in the sequence, otherwise am= am−1+ m.The first few numbers in the Recam 阅读全文
posted @ 2011-05-31 21:16 Eric-Yang 阅读(218) 评论(0) 推荐(0) 编辑

摘要: Ancient CipherTime Limit:1000MSMemory Limit:65536KTotal Submissions:17773Accepted:6103DescriptionAncient Roman empire had a strong government system with various departments, including a secret service department. Important documents were sent between provinces and the capital in encrypted form to p 阅读全文
posted @ 2011-05-31 20:26 Eric-Yang 阅读(364) 评论(0) 推荐(0) 编辑

摘要: Power of CryptographyTime Limit:1000MSMemory Limit:30000KTotal Submissions:10442Accepted:5392DescriptionCurrent work in cryptography involves (among other things) large prime numbers and computing powers of numbers among these primes. Work in this area has resulted in the practical use of results fr 阅读全文
posted @ 2011-05-31 20:08 Eric-Yang 阅读(172) 评论(0) 推荐(0) 编辑

摘要: IMMEDIATE DECODABILITYTime Limit:1000MSMemory Limit:10000KTotal Submissions:7371Accepted:3513DescriptionAn encoding of a set of symbols is said to be immediately decodable if no code for one symbol is the prefix of a code for another symbol. We will assume for this problem that all codes are in bina 阅读全文
posted @ 2011-05-31 19:46 Eric-Yang 阅读(259) 评论(0) 推荐(0) 编辑

摘要: DoublesTime Limit:1000MSMemory Limit:10000KTotal Submissions:14336Accepted:8049DescriptionAs part of an arithmetic competency program, your students will be given randomly generated lists of from 2 to 15 unique positive integers and asked to determine how many items in each list are twice some other 阅读全文
posted @ 2011-05-31 17:04 Eric-Yang 阅读(167) 评论(0) 推荐(0) 编辑

摘要: Ecology taxTime Limit:1000MSMemory Limit:65536KTotal Submissions:3443Accepted:1769DescriptionIn a big and rich on natural resources country, the government started a campaign to control deforestation. In fact the government is not too interested in how many trees get fallen, but rather how effective 阅读全文
posted @ 2011-05-31 16:38 Eric-Yang 阅读(281) 评论(0) 推荐(0) 编辑

摘要: 1062*昂贵的聘礼枚举等级限制+dijkstra1087*APlugforUNIX2分匹配1094SortingItAllOutfloyd或拓扑1112*TeamThemUp!2分图染色+DP1125StockbrokerGrapevineFLOYD1135DominoEffect最短路1149*PIGS网络流1161*Wallsfloyd1201Intervals差分约束1236*NetworkofSchools强联通1251JungleRoadsMST1273DrainageDitches最大流1274ThePerfectStall2分匹配1275*CashierEmployment差分 阅读全文
posted @ 2011-05-31 16:10 Eric-Yang 阅读(172) 评论(0) 推荐(0) 编辑

摘要: http://hi.baidu.com/novosbirsk/blog/item/723a9727a9ab8804918f9dca.html其实也谈不上推荐,只是自己做过的题目而已,甚至有的题目尚未AC,让在挣扎中。之所以推荐计算几何题,是因为,本人感觉ACM各种算法中计算几何算是比 较实际的算法,在很多领域有着重要的用途(例如本人的专业,GIS)。以后若有机会,我会补充、完善这个列表。计算几何题的特点与做题要领:1.大部分不会很难,少部分题目思路很巧妙2.做计算几何题目,模板很重要,模板必须高度可靠。3.要注意代码的组织,因为计算几何的题目很容易上两百行代码,里面大部分是模板。如果代码一片混 阅读全文
posted @ 2011-05-31 16:09 Eric-Yang 阅读(375) 评论(0) 推荐(0) 编辑

摘要: 容易:1018, 1050, 1083, 1088, 1125, 1143, 1157, 1163, 1178, 1179, 1189, 1208, 1276, 1322, 1414, 1456, 1458, 1609, 1644, 1664, 1690, 1699, 1740, 1742, 1887, 1926, 1936, 1952, 1953, 1958, 1959, 1962, 1975, 1989, 2018, 2029, , 2063, 2081, 2082, 2181, 2184, 2192, 2231, 2279, 2329, 2336, 2346, 2353, 2355, 2 阅读全文
posted @ 2011-05-31 16:08 Eric-Yang 阅读(416) 评论(0) 推荐(0) 编辑