博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
HDU1286+线性筛素数
阅读量:4575 次
发布时间:2019-06-08

本文共 655 字,大约阅读时间需要 2 分钟。

View Code
1 /* 2 欧拉函数+求与之互素的数的个数 3 */ 4 #include
5 #include
6 #include
7 #include
8 #include
9 #include
10 #include
11 #include
12 #include
13 typedef long long ll;14 //typedef __int64 int64;15 const int maxn = 40005;16 const int inf = 0x7FFFFFFF;17 const double pi = acos(-1.0);18 const double eps = 1e-8;19 using namespace std;20 int prime[ 50001 ],shu[ 50001 ];21 int getPrime( int n ){22 for( int i=1;i

没什么好说的。。。wa了几次。。。因为for循环条件没写好。。

欧拉函数。。。

 

转载于:https://www.cnblogs.com/xxx0624/archive/2013/04/26/3045708.html

你可能感兴趣的文章
Algorithms
查看>>
老李推荐:第14章6节《MonkeyRunner源码剖析》 HierarchyViewer实现原理-装备ViewServer-启动ViewServer...
查看>>
《面对对象分析与设计》书摘
查看>>
VC2010MFC下的ArcEngine开发(一)
查看>>
Android Studio 1.0.2 设置内存大小
查看>>
捕获与异常
查看>>
数据适配 DataAdapter对象
查看>>
有序列表ol和定义列表dl,dt,dd
查看>>
联想小新Air 15 安装黑苹果macOS High Sierra 10.13.6过程
查看>>
公共POI导出Excel方法–java
查看>>
次短路——Dijkstra
查看>>
C++ compile issue
查看>>
安卓中的shape
查看>>
站立会议总结08
查看>>
C++ stat判断路径是文件还是目录
查看>>
动态代理
查看>>
ie11下,接受postmessage返回的信息
查看>>
7 big mistakes to avoid in first year of retirement
查看>>
小技巧
查看>>
python接口自动化20-requests获取响应时间(elapsed)与超时(timeout) ok试了 获取响应时间的...
查看>>