HDOJ 1012

来源:互联网 发布:艾宾浩斯记忆软件 编辑:程序博客网 时间:2024/06/08 14:05
复制代码
水题天天有,今天特别多....嘿嘿u Calculate eTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19289    Accepted Submission(s): 8423Problem DescriptionA simple mathematical formula for e iswhere n is allowed to go to infinity. This can actually yield very accurate approximations of e using relatively small values of n. OutputOutput the approximations of e generated by the above formula for the values of n from 0 to 9. The beginning of your output should appear similar to that shown below. Sample Outputn e- -----------0 11 22 2.53 2.6666666674 2.708333333
复制代码
原创粉丝点击