码迷,mamicode.com
首页 > 其他好文 > 详细

nefu 117

时间:2014-11-15 18:30:40      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:blog   io   ar   os   sp   div   log   amp   ef   

/*
n 
她的素数有n/ln(n)个。
*/
#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<cmath>
#include<cstdlib>
#include<algorithm>
#include<queue>
#include<vector>
#include<set>
using namespace std;
int n;
int main()
{
      while(scanf("%d",&n)!=EOF)
      {
            int res;
            res=n-log10(n*log(10));
            printf("%d",res+1);
      }
      return 0;
}
未完,继续阅读

  

nefu 117

标签:blog   io   ar   os   sp   div   log   amp   ef   

原文地址:http://www.cnblogs.com/a972290869/p/4099529.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!