首页 > 代码库 > nefu 117

nefu 117

/*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