摘要: Problem Description 度熊手上有一本字典存储了大量的单词,有一次,他把所有单词组成了一个很长很长的字符串。现在麻烦来了,他忘记了原来的字符串都是什么,神奇的是他竟然记得原来那些字符串的哈希值。一个字符串的哈希值,由以下公式计算得到: H(s)=∏i≤len(s)i=1(Si−28) 阅读全文
posted @ 2016-05-17 18:53 UniqueColor 阅读(252) 评论(0) 推荐(0) 编辑
摘要: Description The SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how many quadruplet (a, b, c, d ) ∈ A 阅读全文
posted @ 2016-05-17 16:46 UniqueColor 阅读(380) 评论(0) 推荐(0) 编辑
摘要: Description Simon is doing a physics experiment with N identical balls with the same radius of R centimeters. Before the experiment, all N balls are f 阅读全文
posted @ 2016-05-17 16:30 UniqueColor 阅读(462) 评论(0) 推荐(0) 编辑
摘要: Description Jessica's a very lovely girl wooed by lots of boys. Recently she has a problem. The final exam is coming, yet she has spent little time on 阅读全文
posted @ 2016-05-17 16:09 UniqueColor 阅读(221) 评论(0) 推荐(0) 编辑