ltx_zero

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2020年2月6日

摘要: 如果筛选素数sqrt(n),然后挨个统计进去,复杂度是nsqrt(n) #include<stdio.h> #include<math.h> #include<string.h> using namespace std; bool isPrime(int n) { if(n<=1) return f 阅读全文
posted @ 2020-02-06 14:40 ltx_zero 阅读(134) 评论(0) 推荐(0) 编辑