上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 34 下一页
摘要: 原文来自https://www.byvoid.com/blog/string-hash-compare/好文章,果断存自己的blog。常用的字符串Hash函数还有ELFHash,APHash等等,都是十分简单有效的方法。这些函数使用位运算使得每一个字符都对最后的函数值产生影响。另外还有以MD5和SH... 阅读全文
posted @ 2014-02-12 21:45 hr_whisper 阅读(382) 评论(0) 推荐(0) 编辑
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1332题目大意:给定一个词典(已经按照字典序排好),要求找出其中所有的复合词,即恰好由两个单词连接而成的单词... 阅读全文
posted @ 2014-02-12 21:43 hr_whisper 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 两题水题:1.如果一个数能被分解为两个素数的乘积,则称为Semi-Prime,给你一个数,让你判断是不是Semi-Prime数。2.定义F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2) 让你判断第n项是否能被3整除。1.ZOJ 2723 Semi-... 阅读全文
posted @ 2014-02-11 23:20 hr_whisper 阅读(236) 评论(0) 推荐(0) 编辑
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=586题目大意:QS是一种生物,要完成通信,需要设备,每个QS需要的设备的价格不同,并且,这种设备只能在两个QS之间用一次,也就是说,如果一个QS需要和3个QS通信的话,它就必须得买... 阅读全文
posted @ 2014-02-11 22:27 hr_whisper 阅读(141) 评论(0) 推荐(0) 编辑
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1066http://poj.org/problem?id=2549题目大意:给定一个整数几何S,找出一个最大... 阅读全文
posted @ 2014-02-11 21:14 hr_whisper 阅读(148) 评论(0) 推荐(0) 编辑
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2896题目大意:甲和乙两条狗分别沿着一条折线跑,它们速度未知,但同时出发并且同时到达终点,并且都是匀速奔跑。... 阅读全文
posted @ 2014-02-11 19:30 hr_whisper 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 题目大意:两题几何水题。1.UVA 11646 - Athletics Track如图,体育场的跑道一圈400米,其中弯道是两段半径相同的圆弧,已知矩形的长宽比例为a:b,求长和宽的具体数值。2.UVA 11817 - Tunnelling the Earth给出地球上起点和终点(均用度数的经纬度表... 阅读全文
posted @ 2014-02-10 21:49 hr_whisper 阅读(194) 评论(0) 推荐(0) 编辑
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2900题目大意:给定平面上的4个点,没有3点共线,你的任务是判断着4个点能组成什么样的四边形。(正方形,矩形... 阅读全文
posted @ 2014-02-10 21:18 hr_whisper 阅读(168) 评论(0) 推荐(0) 编辑
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2432题目大意:如图,定义三角形ABC,在BC,CA,AB上分别取边D,E,F,使得CD=2BD,AE=2C... 阅读全文
posted @ 2014-02-10 20:24 hr_whisper 阅读(112) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=2284https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1264http://acm.hd... 阅读全文
posted @ 2014-02-10 20:04 hr_whisper 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 34 下一页