![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
找规律
scorpio_j
时间见证成长
展开
-
hdu--1014 Uniform Generator
题目:hdu–1014Problem Description Computer 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原创 2017-08-03 23:28:43 · 287 阅读 · 0 评论 -
hdu--6063 RXD and math
题目:hdu–6063 RXD and mathProblem Description RXD is a good mathematician.One day he wants to calculate:∑i=1nkμ2(i)×⌊nki−−−√⌋\sum_{i = 1}^{n^k}{\mu^2(i) \times \lfloor \sqrt{\frac{n^k}{i}} \rfloor}outpu原创 2017-08-04 00:04:32 · 221 阅读 · 0 评论 -
hdu--6045 Is Derek Lying
题目链接:hdu--6045 第一眼看这个题,就是一个找规律的题目,但是,列了一大串的数据,分析了好久,还是在别人的提醒下才惊醒,Orz,着实忏愧。 其实,只要找到数据的成立(Not lying)的上下界即可, 思路:先遍历一遍两组数组的不相等的个数(sum),abs(x-y)>sum:表示下界,(x+y)>2*n-sum:表示上界。 代码: #include #include usin原创 2017-07-27 22:16:05 · 209 阅读 · 0 评论