设为首页 加入收藏

TOP

hdu1018--斯特灵公式
2015-07-20 18:03:52 来源: 作者: 【 】 浏览:3
Tags:hdu1018-- 特灵 公式

斯特灵公式 Wiki http://zh.wikipedia.org/wiki/斯特林公式


/** \brief hdu 1018
 *
 * \param date 2014/7/24
 * \param state AC
 * \return
 *
 */

#include 
  
   
#include 
   
     #include 
    
      using namespace std; const double PI=3.1415926; int main() { //cout << "Hello world!" << endl; //freopen("input.txt","r",stdin); int t; cin>>t; for(int i=0;i
     
      >n; int digits=(int)((0.5*log(2*PI*n)+n*log(n)-n)/log(10)); cout<
      
       

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇poj 3630 Phone List (字典树 +静.. 下一篇HDU 4882 ZCC Loves Codefires(贪..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: