![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
哈希
文章平均质量分 78
「已注销」
这个作者很懒,什么都没留下…
展开
-
hdu-1128 自私的数
Self NumbersIn 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbers called self-numbers. For any positive integer n, define d(n) to be n plus the sum of the digits of n. (The d原创 2017-10-22 09:51:23 · 297 阅读 · 0 评论 -
POJ - 1200 A - crazy search
A - Crazy SearchMany people like to solve hard puzzles some of which may lead them to madness. One such puzzle could be finding a hidden prime number in a given text. Such number could be the number原创 2017-10-26 19:33:58 · 334 阅读 · 0 评论 -
POJ - 1840 A - Eqs
A - EqsConsider equations having the following form: a1x1 3+ a2x2 3+ a3x3 3+ a4x4 3+ a5x5 3=0 The coefficients are given integers from the interval [-50,50]. It is consider a solution a syst原创 2017-10-26 19:34:49 · 303 阅读 · 0 评论 -
POJ - 2503 B - Babelfish
B - BabelfishYou have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them.原创 2017-10-26 19:35:49 · 259 阅读 · 0 评论 -
POJ - 1971 C - Parallelogram Counting
C - Parallelogram CountingThere are n distinct points in the plane, given by their integer coordinates. Find the number of parallelograms whose vertices lie on these points. In other words, find the原创 2017-10-26 19:36:35 · 235 阅读 · 0 评论 -
CodeForces - 4C Registration system
Registration systemA new e-mail service "Berlandesk" is going to be opened in Berland in the near future. The site administration wants to launch their project as soon as possible, that's why they a原创 2017-10-26 19:37:10 · 297 阅读 · 0 评论 -
HDU - 1286 F - 找新朋友
F - 找新朋友新年快到了,“猪头帮协会”准备搞一个聚会,已经知道现有会员N人,把会员从1到N编号,其中会长的号码是N号,凡是和会长是老朋友的,那么该会员的号码肯定和N有大于1的公约数,否则都是新朋友,现在会长想知道究竟有几个新朋友?请你编程序帮会长计算出来。Input第一行是测试数据的组数CN(Case number,1Output对于每一个N,输出一行新朋友的人数,这样原创 2017-10-26 19:37:47 · 256 阅读 · 0 评论 -
hust 1607 Triangles
TrianglesTime Limit: 1 Sec Memory Limit: 128 MBSubmissions: 115 Solved: 30Description You are given a figure consisting of n points in a 2D-plane and m segments connecting some of them. We原创 2017-10-26 19:38:28 · 219 阅读 · 0 评论 -
UVA 10391 Compound Words
UVA 10391 Compound WordsYou are to find all the two-word compound words in a dictionary. A two-word compound word is aword in the dictionary that is the concatenation of exactly two other words i原创 2017-10-26 19:40:05 · 238 阅读 · 0 评论