luogu2257 YY的GCD 答案为: $\sum\limits_{p\in prime}\sum\limits_{i=1}^{n}\sum\limits_{j=1}^{m}[gcd(i,j)==p]$ $=\sum\limits_{p\in prime}\sum\limits_{i=1}^{\ ...
分类:
其他好文 时间:
2019-01-13 14:59:25
阅读次数:
104
明明多个几秒就能场上AK了。自闭。 A:签到。 #include<iostream> #include<cstdio> #include<cmath> #include<cstdlib> #include<cstring> #include<algorithm> using namespace st ...
分类:
其他好文 时间:
2019-01-12 10:40:10
阅读次数:
117
Elaborate 精心的 preparations were being made for the Prime Minister’s official visit to the four foreign countries. This local evening paper has a circu ...
分类:
其他好文 时间:
2019-01-10 21:47:47
阅读次数:
177
The PHP cron expression parser can parse a CRON expression, determine if it is due to run, calculate the next run date of the expression, and calculat ...
分类:
Web程序 时间:
2019-01-10 11:25:28
阅读次数:
224
C++ Prime 里有原话(中文):这种“用基类的指针或引用操纵多个类型”的能力被称为多态(polymorphism)。 例如有基类Camera, 他的子类有各种Camera,然后已知函数: 在实现lookat()时,只要对基类Camera的接口进行编程,而与 指针 pcamera 指向的具体是哪 ...
分类:
编程语言 时间:
2019-01-09 16:41:39
阅读次数:
196
用numpy来看shape,比如np.shape(img_data),会得到这样的结果(600,790,3) 注意:600不是横坐标,而是表示多少列,790才是横坐标 用numpy测试就可以看出: 包括calculate.py 中的代码也看的出来: image = data_dict['data'] ...
分类:
其他好文 时间:
2019-01-09 16:13:58
阅读次数:
169
C++ 记录 不要 混用带符号类型和无符号类型.主要是比较 加减. 右值引用.TODO 数组指针和指针数组 a.数组指针: 是指针,指向数组. 如: // 声明方式. 由于"[]"比" "优先级要高,所以需要"()" int ( parr)[5]; // 使用方式 int a[] = {1,2,3, ...
分类:
编程语言 时间:
2019-01-09 00:35:53
阅读次数:
263
Not in the frontier of research, but the results are used commonly now. X_{k+1} - X_n are known, to calculate the joint probability, we have to do inf ...
分类:
其他好文 时间:
2019-01-07 10:39:48
阅读次数:
197
//质数筛法 /*Era筛: 复杂度:O(nloglogn)非常接近线性 原理:任何质数x的倍数:2x,3x,...都是合数,优化后只要筛 >=x*x的数即可 */ void primes(int n){ memset(v,0,sizeof v);//合数标记 for(int i=2;iv[i] |... ...
分类:
其他好文 时间:
2019-01-06 21:54:04
阅读次数:
177
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re ...
分类:
其他好文 时间:
2019-01-04 19:12:40
阅读次数:
168