摘要: 原题链接:http://acm.nefu.edu.cn/JudgeOnline/problemshow.php?problem_id=117分析:设数为N,则其位数为(int)lg(N)+1;log(10)=ln(10);素数定理:令Pn表示 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 int main() 8 { 9 int n;10 double e=2.71828;11 while(cin>>n)12 {13 double ans=double(n... 阅读全文
posted @ 2013-09-04 23:39 EtheGreat 阅读(210) 评论(0) 推荐(0) 编辑