
哈希
文章平均质量分 76
键盘上的舞者
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
POJ1840:Eqs
DescriptionConsider equations having the following form: a1x13+ a2x23+ a3x33+ a4x43+ a5x53=0The coefficients are given integers from the interval [-50,50]. It is consider a solution a system (原创 2013-03-10 10:43:08 · 3164 阅读 · 0 评论 -
HDU2136:Largest prime factor
Problem DescriptionEverybody knows any number can be combined by the prime number.Now, your task is telling me what position of the largest prime factor.The position of prime 2 is 1, prime 3 is原创 2013-03-29 20:34:33 · 1518 阅读 · 0 评论 -
HDU1128:Self Numbers
Problem DescriptionIn 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.原创 2013-03-28 19:36:01 · 1916 阅读 · 1 评论 -
HDU2716:Message Decowding
Problem DescriptionThe cows are thrilled because they've just learned about encrypting messages. They think they will be able to use secret messages to plot meetings with cows on other farms.Cow原创 2013-03-28 21:30:07 · 1538 阅读 · 0 评论 -
HDU1014:Uniform Generator
Problem DescriptionComputer simulations often require random numbers. One way to generate pseudo-random numbers is via a function of the formseed(x+1) = [seed(x) + STEP] % MODwhere '%' is th原创 2013-04-04 13:37:28 · 1593 阅读 · 0 评论 -
HDU4287:Intelligent IME
Problem Description We all use cell phone today. And we must be familiar with the intelligent English input method on the cell phone. To be specific, the number buttons may correspond to some Engli原创 2013-05-09 21:46:08 · 1367 阅读 · 0 评论 -
HDU3833:YY's new problem
Problem DescriptionGiven a permutation P of 1 to N, YY wants to know whether there exists such three elements P[i1], P[i2], P[i3] that P[i1]-P[i2]=P[i2]-P[i3], 1123 InputThe first line is原创 2013-11-26 20:34:26 · 2232 阅读 · 1 评论 -
BNU27584 && SOJ2499:平方数(哈希)
费马四平方数猜想指出,任意自然数都可以分解成不超过四个完全平方数的和。例如:144 = 122 ,14 = 12 + 22 + 32。现在给出自然数N(N ≤ 60000),_gXX希望知道N最少可以分解成多少个完全平方数。Input 输入文件包含多组数据。第一行,一个整数T(T ≤ 10000),表示数据的组数。第2~T+1行,每行一个自然数N。原创 2013-12-10 17:03:10 · 2340 阅读 · 0 评论 -
POJ2002:Squares
DescriptionA square is a 4-sided polygon whose sides have equal length and adjacent sides form 90-degree angles. It is also a polygon such that rotating about its centre by 90 degrees gives the sa原创 2014-08-17 14:40:21 · 2718 阅读 · 2 评论