LeeJQ
LeeJQ
全部文章
题解
归档
标签
去牛客网
登录
/
注册
LeeJQ的博客
全部文章
/ 题解
(共1篇)
题解 | #质数因子#
C++求质数因子,总算不超时了! 不知道各位的情况如何,我在题解区看到的答案都遭遇了超时的问题。因此本题解采用了引入“根号”来判断质数。代码如下: #include using namespace std; int main() { long n, old_n=0; cin &...
C++
质数因子
质数因子
2021-06-29
41
4281