hdu_1012
来源:互联网 发布:电脑语音读书软件 编辑:程序博客网 时间:2024/06/10 20:43
#include <iostream>#include<iomanip>using namespace std;int main(){ cout<<'n'<<' '<<'e'<<endl; cout<<"- -----------"<<endl; cout<<0<<' '<<1<<endl; cout<<1<<' '<<2<<endl; cout<<2<<' '<<2.5<<endl; for(int n=3;n<=9;n++) { long double e=2.0; for(int j=2;j<=n;j++) { int buffer=1; for(int k=1;k<=j;k++) buffer=buffer*k; e=e+1.0/((long double)buffer); } cout<<n<<' '; cout.setf(ios::fixed); cout<<setprecision(9)<<e<<endl; } return 0;}
0 0
- hdu_1012
- HDU_1012
- hdu_1012
- HDU_1012 u Calculate e
- break,return,continue
- JVM hang时,Eden区100%,所有线程包括gc线程被 blocked分析
- android获得屏幕高度和宽度
- 线程池多线程使用示例
- POJ 1716 Integer Intervals(贪心 | 查分约束)
- hdu_1012
- Windows进程内存管理
- 蓝牙4.0 For IOS
- SGU 176 有源汇上下界最小流
- 解决PHP函数ip2long转换IP时数值太大而产生负数的办法
- [转载]ios 开发 icon图标设置
- django模板中使用加法,以及变量赋值
- android 捕获并处理HOME键
- 安装和卸载windows服务