Discription Let's denote d(n) as the number of divisors of a positive integer n. You are given three integers a, b and c. Your task is to calculate th ...
分类:
其他好文 时间:
2018-03-08 23:00:59
阅读次数:
225
题目描述:Checker Challenge 1000(ms) 10000(kb) 20 / 90 Examine the 6x6 checkerboard below and note that the six checkers are arranged on the board so that ...
分类:
其他好文 时间:
2018-03-04 19:58:50
阅读次数:
162
To strive, to seek, to find, and not to yield. 去奋斗,去寻觅,去探索,但绝不屈服。 Strive for our dreams, seek the very answers of life which can help us out with doub ...
分类:
其他好文 时间:
2018-02-25 00:04:16
阅读次数:
165
题目链接 Broken Clock 中文题面链接 令$cos(xα) = f(x)$ 根据三角函数变换公式有 $f(x) = \frac{2d}{l} f(x-1) - f(x-2)$ 令$f(x) = \frac{g(x)}{l^{x}}$ ...
分类:
其他好文 时间:
2018-02-18 18:37:51
阅读次数:
219
转自:http://blog.csdn.net/jurbo/article/details/52334345 写这个的起因是,还是因为在做Python challenge的时候,有的时候想解决问题,连应该用哪个类库都不知道,还要去百度(我不信就我一个人那么尴尬TvT) 好像自从学习了基础的Pytho ...
分类:
编程语言 时间:
2018-02-18 15:03:51
阅读次数:
281
题目链接 Chef and odd queries 题意 给定$n$个区间和$q$个询问,每个询问给定$m$个点,求这$n$个区间中有多少个包含了$m$个点中的奇数个。 分类操作。 对于$m >$ $\sqrt{n}$的询问直接一个前缀和依次枚举,时间复杂度$O(n)$,因为这样的询问不会超过$\s ...
分类:
其他好文 时间:
2018-02-17 10:26:54
阅读次数:
178
参考:http://blog.csdn.net/w_yqts/article/details/76037315 把相同符号的连续数字加起来,合并后ans先贪心的加上所有正数,如果正数个数sum m,设计二元组(i,a[i])表示合并后序列i位置上值为a,记录前驱后继,塞进按绝对值排序的小根堆里。每次 ...
分类:
其他好文 时间:
2018-02-08 10:16:54
阅读次数:
166
面向对象之原型 object-oriented面向对象的设计,不同于其他语言,js中的面向对象没有类的概念,因此,其对象也有些特殊。 所谓对象就是无序属性的集合,其属性可以包含基本值、对象、函数。也就是说对象是一组没有特定顺序的值的集合;对象的每个属性或方法都有自己名字,名字映射到一个值(值可以是数 ...
分类:
其他好文 时间:
2018-02-02 17:09:59
阅读次数:
160