![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
简单数学,入门级
quarter-moon
这个作者很懒,什么都没留下…
展开
-
E - LCM Cardinality
A pair of numbers has a unique LCM but a single number can be the LCM of more than one possible pairs. For example 12 is the LCM of (1, 12), (2, 12), (3,4) etc. For a given positive integer N, the ...原创 2018-12-07 17:08:23 · 120 阅读 · 0 评论 -
数学的一些小知识
枚举因子法bool judge(int n){ if(n==1) return false; for(int i=2;i*i<=n;i++) { if(n%i==0) return false; } return true;} 要把1特判掉。 可以1秒内单次判断1~10^16以内的任意一个素数是否是素...原创 2018-12-08 16:08:01 · 1922 阅读 · 0 评论