526互联
首页
Ai
Java
Python
Android
Mysql
JavaScript
Html
CSS
P1835
P1835 素数密度
给定区间 [L,R](1≤R<(1<<30) R−L≤1e6 ),请计算区间中素数的个数。 筛出 sqrt(R) 的质数p, 遍历 L~R 的数,看能否被p 约分,也就是合数,打个标记 #include <iostream> #include <cstring> #include <cmath> # ......
素数
密度
P1835
1835
更新时间 2023-04-11
共1篇 :1/1页
首页
上一页
1
下一页
尾页